]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Remove test names from VM command with parallel-vm.py
authorJouni Malinen <j@w1.fi>
Sun, 7 Dec 2014 13:31:38 +0000 (15:31 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 7 Dec 2014 13:33:22 +0000 (15:33 +0200)
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 <j@w1.fi>
tests/hwsim/vm/parallel-vm.py

index 5922c59ffd4ce02f339a7e3e5a3ae3b8eb23b8f6..0887723c4851b98b86b825055a2fb501dd29db1e 100755 (executable)
@@ -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,