e2e: Implicitely include the handshake in all tests

Instead of having to write it manually everytime
This commit is contained in:
louiz’
2019-11-09 20:50:36 +01:00
parent 1736641368
commit efb695be6b
55 changed files with 10 additions and 71 deletions
+4 -1
View File
@@ -292,7 +292,10 @@ def get_scenarios(test_path, provided_scenar_names):
conf = "basic"
if hasattr(mod, "conf"):
conf = mod.conf
scenarios.append(Scenario(module_name, mod.scenario, conf))
# Every scenario needs to start with the handshake sequence.
# Instead of repeating it everytime, we add it implicitely. This
# is done here.
scenarios.append(Scenario(module_name, (sequences.handshake(),) + mod.scenario, conf))
return scenarios