From b91706fbcd91932d72ee1c48bd5fef2581db91fa Mon Sep 17 00:00:00 2001 From: Edouard Tisserant Date: Tue, 15 Nov 2016 17:55:54 +0100 Subject: [PATCH] Tests: Added only_$TestName command line argument to multiprocess test, to select a single test to run. --- test/mp_sync_test.py | 2 +- test/multipEp.py | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/test/mp_sync_test.py b/test/mp_sync_test.py index 9f6e902..70f5cd6 100644 --- a/test/mp_sync_test.py +++ b/test/mp_sync_test.py @@ -1,5 +1,5 @@ """ -test for simplest keysync scenario : two device setting up same account +tests for keysync scenario Launch it with something like : LC_ALL=en_US.UTF-8 \ diff --git a/test/multipEp.py b/test/multipEp.py index 5ffe591..55380bd 100644 --- a/test/multipEp.py +++ b/test/multipEp.py @@ -327,6 +327,12 @@ def run_manager_action(action): return func(*args, **kwargs) def run_scenario(scenario): + for a in sys.argv: + if a.startswith("only_") and a != "only_" + scenario.__name__ : + print("IGNORING: " + scenario.__name__) + return + print("RUNNING: " + scenario.__name__) + global handshakes_seen, handshakes_validated, msgs_folders, instances instances = OrderedDict() with multiprocessing.Manager() as manager: