From b54f69701949cfeb58d50106d6f7a628ba8c48b5 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sun, 7 Dec 2014 15:31:38 +0200 Subject: [PATCH] tests: Remove test names from VM command with parallel-vm.py There is no need to pass the test case names to the VMs when using parallel-vm.py. Removing those from the command line helps in avoiding kernel panic if maximum number of kernel parameters limit is hit. Signed-off-by: Jouni Malinen --- tests/hwsim/vm/parallel-vm.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/hwsim/vm/parallel-vm.py b/tests/hwsim/vm/parallel-vm.py index 5922c59ff..0887723c4 100755 --- a/tests/hwsim/vm/parallel-vm.py +++ b/tests/hwsim/vm/parallel-vm.py @@ -139,6 +139,7 @@ def main(): tests.append(name) if len(tests) == 0: sys.exit("No test cases selected") + extra_args = [x for x in sys.argv[2:] if x not in tests] dir = '/tmp/hwsim-test-logs' try: @@ -152,7 +153,7 @@ def main(): print("\rStarting virtual machine {}/{}".format(i + 1, num_servers)), cmd = ['./vm-run.sh', '--timestamp', str(timestamp), '--ext', 'srv.%d' % (i + 1), - '-i'] + sys.argv[2:] + '-i'] + extra_args vm[i] = {} vm[i]['proc'] = subprocess.Popen(cmd, stdin=subprocess.PIPE,