diff --git a/test/run_tests.py b/test/run_tests.py index be875117c..d1c414069 100755 --- a/test/run_tests.py +++ b/test/run_tests.py @@ -4,12 +4,14 @@ import os import sys +from os.path import abspath, dirname, join from subprocess import Popen, call from tempfile import TemporaryFile import env from run_unit_tests import run_unit_tests +CURDIR = dirname(abspath(__file__)) REBOT_ARGS = [ '--outputdir', '%(outdir)s', @@ -120,7 +122,8 @@ def _help(): def _run_unit_tests(): print('Running unit tests') - failures = run_unit_tests() + pypath = sys.executable + failures = call([pypath, os.path.join(CURDIR,'run_unit_tests.py')]) if failures != 0: print('\n%d unit tests failed - not running acceptance tests!' % failures) else: