From 3a002709f4d71d8de1bd3cc55cf022b94aeac44c Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Sat, 8 Oct 2016 07:59:14 -0400 Subject: [PATCH] Pass cmd line args onwards. --- run_tests.py | 2 +- run_unittests.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/run_tests.py b/run_tests.py index e8b0c8f46..77e675443 100755 --- a/run_tests.py +++ b/run_tests.py @@ -31,5 +31,5 @@ if __name__ == '__main__': myenv['CXX'] = 'clang++' print("'\nRunnint unittests with clang.\n") returncode += subprocess.call([sys.executable, 'run_unittests.py'], env=myenv) - returncode += subprocess.call([sys.executable, 'run_project_tests.py']) + returncode += subprocess.call([sys.executable, 'run_project_tests.py'] + sys.argv[1:]) sys.exit(returncode) diff --git a/run_unittests.py b/run_unittests.py index dc07fc5bb..07d9250ac 100755 --- a/run_unittests.py +++ b/run_unittests.py @@ -13,7 +13,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -import unittest, os, shutil +import unittest, os, sys, shutil import subprocess import re @@ -32,7 +32,7 @@ class LinuxlikeTests(unittest.TestCase): super().setUp() src_root = os.path.split(__file__)[0] self.builddir = 'unittestdir' # fixme to be unique - self.meson_command = [os.path.join(src_root, 'meson.py')] + self.meson_command = [sys.executable, os.path.join(src_root, 'meson.py')] self.ninja_command = ['ninja', '-C', self.builddir] self.common_test_dir = os.path.join(src_root, 'test cases/common') os.mkdir(self.builddir)