2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-13 12:22:17 +00:00

Updated the Boost Build core_nt_cmd_line.py test to make it compatible with the ancient Python releases prior to Python version 2.5. It seems those versions do not support the 'x = 1 if condition else 2' construct and report it as a SyntaxError.

[SVN r79119]
This commit is contained in:
Jurko Gospodnetić
2012-06-26 17:46:37 +00:00
parent 2b90f86094
commit a690d471a4

View File

@@ -96,7 +96,11 @@ actions do_echo
JAMSHELL = %% ;
do_echo all ;
""" % (cmd_prefix, string_of_length(data_length), cmd_suffix))
t.run_build_system("-ffile.jam", status=1 if error else 0)
if error:
expected_status = 1
else:
expected_status = 0
t.run_build_system("-ffile.jam", status=expected_status)
if error:
t.expect_output_line("Executing raw command directly", False)
t.expect_output_line("do_echo action is too long (%d, max 32766):" % n)