##// END OF EJS Templates
tests: fix run-tests when there's a bad #if in a test...
Augie Fackler -
r32622:931bb962 default
parent child Browse files
Show More
@@ -1778,10 +1778,11 b' class TestSuite(unittest.TestSuite):'
1778 except: # re-raises
1778 except: # re-raises
1779 done.put(('!', test, 'run-test raised an error, see traceback'))
1779 done.put(('!', test, 'run-test raised an error, see traceback'))
1780 raise
1780 raise
1781 try:
1781 finally:
1782 channels[channel] = ''
1782 try:
1783 except IndexError:
1783 channels[channel] = ''
1784 pass
1784 except IndexError:
1785 pass
1785
1786
1786 def stat():
1787 def stat():
1787 count = 0
1788 count = 0
@@ -903,6 +903,30 b' support for bisecting failed tests autom'
903
903
904 $ cd ..
904 $ cd ..
905
905
906 Test a broken #if statement doesn't break run-tests threading.
907 ==============================================================
908 $ mkdir broken
909 $ cd broken
910 $ cat > test-broken.t <<EOF
911 > true
912 > #if notarealhghavefeature
913 > $ false
914 > #endif
915 > EOF
916 $ for f in 1 2 3 4 ; do
917 > cat > test-works-$f.t <<EOF
918 > This is test case $f
919 > $ sleep 1
920 > EOF
921 > done
922 $ rt -j 2
923 ....
924 # Ran 5 tests, 0 skipped, 0 warned, 0 failed.
925 skipped: unknown feature: notarealhghavefeature
926
927 $ cd ..
928 $ rm -rf broken
929
906 Test cases in .t files
930 Test cases in .t files
907 ======================
931 ======================
908 $ mkdir cases
932 $ mkdir cases
General Comments 0
You need to be logged in to leave comments. Login now