diff options
author | Steven Knight <knight@baldmt.com> | 2010-01-26 16:26:26 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2010-01-26 16:26:26 (GMT) |
commit | f5a80d8cf4143edd7434805a568cc0e7eeaf81c0 (patch) | |
tree | 3608231e6b538a5222c7d501cbd9ce8d8ef08c76 /test/runtest/aegis/batch-output.py | |
parent | b21c0b3f84d0b064e9d2dd548e0b6d246a537afb (diff) | |
download | SCons-f5a80d8cf4143edd7434805a568cc0e7eeaf81c0.zip SCons-f5a80d8cf4143edd7434805a568cc0e7eeaf81c0.tar.gz SCons-f5a80d8cf4143edd7434805a568cc0e7eeaf81c0.tar.bz2 |
Win32 portability in runtest.py tests after disabling QMTest by default.
Diffstat (limited to 'test/runtest/aegis/batch-output.py')
-rw-r--r-- | test/runtest/aegis/batch-output.py | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/test/runtest/aegis/batch-output.py b/test/runtest/aegis/batch-output.py index e2f00ee..68bd166 100644 --- a/test/runtest/aegis/batch-output.py +++ b/test/runtest/aegis/batch-output.py @@ -28,8 +28,14 @@ __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__" Test writing Aegis batch output to a file. """ +import os + import TestRuntest +test_fail_py = os.path.join('test', 'fail.py') +test_no_result_py = os.path.join('test', 'no_result.py') +test_pass_py = os.path.join('test', 'pass.py') + test = TestRuntest.TestRuntest() test.subdir('test') @@ -50,14 +56,14 @@ test.run(arguments = '-o aegis.out --aegis test', stderr=expect_stderr) expect = """\ test_result = [ - { file_name = "test/fail.py"; + { file_name = "%(test_fail_py)s"; exit_status = 1; }, - { file_name = "test/no_result.py"; + { file_name = "%(test_no_result_py)s"; exit_status = 2; }, - { file_name = "test/pass.py"; + { file_name = "%(test_pass_py)s"; exit_status = 0; }, ]; -""" +""" % locals() # The mode is 'r' (not default 'rb') because QMTest opens the file # description on which we write as non-binary. |