diff options
author | Steven Knight <knight@baldmt.com> | 2009-01-29 17:06:24 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2009-01-29 17:06:24 (GMT) |
commit | 1498b1e8c83c6aced5e96a72b28a64ef2bdf2ffd (patch) | |
tree | 4a8c0e032315c03c1674b52764d09f8673ae065b | |
parent | f2124c8cac9879ed1631ebafdbd85fd4b5a307a0 (diff) | |
download | SCons-1498b1e8c83c6aced5e96a72b28a64ef2bdf2ffd.zip SCons-1498b1e8c83c6aced5e96a72b28a64ef2bdf2ffd.tar.gz SCons-1498b1e8c83c6aced5e96a72b28a64ef2bdf2ffd.tar.bz2 |
Change explicit uses of test.no_result() to test.skip_test(),
for consistency with the rest.
-rw-r--r-- | test/CPPFLAGS.py | 3 | ||||
-rw-r--r-- | test/SHELL.py | 4 | ||||
-rw-r--r-- | test/symlink/VariantDir.py | 3 | ||||
-rw-r--r-- | test/symlink/dangling-include.py | 3 | ||||
-rw-r--r-- | test/symlink/dangling-source.py | 3 |
5 files changed, 7 insertions, 9 deletions
diff --git a/test/CPPFLAGS.py b/test/CPPFLAGS.py index ce8bd77..1aaf4a3 100644 --- a/test/CPPFLAGS.py +++ b/test/CPPFLAGS.py @@ -39,7 +39,8 @@ test = TestSCons.TestSCons() # Writing this to accomodate both our in-line tool chain and the # MSVC command lines is too hard, and will be completely unnecessary # some day when we separate our tests. Punt for now. -test.no_result(sys.platform == 'win32') +if sys.platform == 'win32': + test.skip_test('Skipping on win32.\n') diff --git a/test/SHELL.py b/test/SHELL.py index 915dbce..b946189 100644 --- a/test/SHELL.py +++ b/test/SHELL.py @@ -40,8 +40,8 @@ _python_ = TestSCons._python_ test = TestSCons.TestSCons() if sys.platform == 'win32': - sys.stderr.write('Cannot set SHELL separately from other variables on Windows.\n') - test.no_result(1) + msg = 'Cannot set SHELL separately from other variables on Windows.\n' + test.skip_test(msg) my_shell = test.workpath('my_shell.py') diff --git a/test/symlink/VariantDir.py b/test/symlink/VariantDir.py index a6dd30b..bbde65d 100644 --- a/test/symlink/VariantDir.py +++ b/test/symlink/VariantDir.py @@ -35,8 +35,7 @@ import TestSCons test = TestSCons.TestSCons() if not hasattr(os, 'symlink'): - print "No os.symlink() method, no symlinks to test." - test.no_result(1) + test.skip_test('No os.symlink() method, no symlinks to test.\n') test.subdir('obj', ['obj', 'subdir'], diff --git a/test/symlink/dangling-include.py b/test/symlink/dangling-include.py index 9c9d93a..97026d5 100644 --- a/test/symlink/dangling-include.py +++ b/test/symlink/dangling-include.py @@ -35,8 +35,7 @@ import TestSCons test = TestSCons.TestSCons() if not hasattr(os, 'symlink'): - print "No os.symlink() method, no symlinks to test." - test.no_result(1) + test.skip_test('No os.symlink() method, no symlinks to test.\n') foo_obj = 'foo' + TestSCons._obj diff --git a/test/symlink/dangling-source.py b/test/symlink/dangling-source.py index 366b742..33ad661 100644 --- a/test/symlink/dangling-source.py +++ b/test/symlink/dangling-source.py @@ -35,8 +35,7 @@ import TestSCons test = TestSCons.TestSCons() if not hasattr(os, 'symlink'): - print "No os.symlink() method, no symlinks to test." - test.no_result(1) + test.skip_test('No os.symlink() method, no symlinks to test.\n') test.write('SConstruct', """ Command('file.out', 'file.in', Copy('$TARGET', '$SOURCE')) |