From efb695be6bdf833d204ff0cd0fbec559dcca9bb1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?louiz=E2=80=99?= Date: Sat, 9 Nov 2019 20:49:05 +0100 Subject: e2e: Implicitely include the handshake in all tests Instead of having to write it manually everytime --- tests/end_to_end/__main__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tests/end_to_end/__main__.py') diff --git a/tests/end_to_end/__main__.py b/tests/end_to_end/__main__.py index ea42acb..e85a4f2 100644 --- a/tests/end_to_end/__main__.py +++ b/tests/end_to_end/__main__.py @@ -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 -- cgit v1.2.3