Make run-tests --test262 work on Windows too (#3029)

JerryScript-DCO-1.0-Signed-off-by: Csaba Osztrogonác oszi@inf.u-szeged.hu
This commit is contained in:
Csaba Osztrogonác
2019-09-04 10:29:21 +02:00
committed by Robert Fancsik
parent a315a6534e
commit 3e661c0c5a
4 changed files with 101 additions and 109 deletions
+3 -2
View File
@@ -283,7 +283,8 @@ def create_binary(job, options):
return ret, build_dir_path
def get_binary_path(build_dir_path):
return os.path.join(build_dir_path, 'local', 'bin', 'jerry')
executable_extension = '.exe' if sys.platform == 'win32' else ''
return os.path.join(build_dir_path, 'local', 'bin', 'jerry' + executable_extension)
def hash_binary(bin_path):
blocksize = 65536
@@ -428,7 +429,7 @@ def run_test262_test_suite(options):
print("\n%sBuild failed%s\n" % (TERM_RED, TERM_NORMAL))
break
test_cmd = [
test_cmd = get_platform_cmd_prefix() + [
settings.TEST262_RUNNER_SCRIPT,
get_binary_path(build_dir_path),
settings.TEST262_TEST_SUITE_DIR