From c8217c7f6eb0879a0adf4571a2b5c09cd9fab8b4 Mon Sep 17 00:00:00 2001 From: HelioGuilherme66 Date: Sun, 18 Sep 2016 00:46:32 +0100 Subject: [PATCH] Now calls run_unit_tests.py file instead of the method (this fixes failure in Fedora Core 22). Get path to python/jython to run unit tests. --- test/run_tests.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/run_tests.py b/test/run_tests.py index 4de5cf7d7..1865bae2c 100755 --- a/test/run_tests.py +++ b/test/run_tests.py @@ -3,11 +3,14 @@ import env import os import sys +from os.path import abspath, dirname, join from subprocess import Popen, call from tempfile import TemporaryFile from run_unit_tests import run_unit_tests +CURDIR = dirname(abspath(__file__)) + ROBOT_ARGS = [ '--doc', 'SeleniumSPacceptanceSPtestsSPwithSP%(browser)s', '--outputdir', '%(outdir)s', @@ -96,7 +99,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: