Author: bugman Date: Wed Sep 24 14:51:22 2014 New Revision: 26011 URL: http://svn.gna.org/viewcvs/relax?rev=26011&view=rev Log: Created the new --no-skip relax command line option. This is a debugging option specifically designed for relax developers. It allows all blacklisted tests to be executed, i.e. all blacklists are ignored. These tests would normally be skipped, however this option enables them. Modified: trunk/relax.py trunk/test_suite/relax_test_loader.py trunk/test_suite/test_suite_runner.py Modified: trunk/relax.py URL: http://svn.gna.org/viewcvs/relax/trunk/relax.py?rev=26011&r1=26010&r2=26011&view=diff ============================================================================== --- trunk/relax.py (original) +++ trunk/relax.py Wed Sep 24 14:51:22 2014 @@ -317,6 +317,7 @@ group.add_option('--gui-tests', action='store_true', dest='gui_tests', default=0, help='execute the GUI tests') group.add_option('--verification-tests', action='store_true', dest='verification_tests', default=0, help='execute the software verification tests') group.add_option('--time', action='store_true', dest='tt', default=0, help='enable the timing of individual tests in the test suite') + group.add_option('--no-skip', action='store_true', dest='no_skip', default=0, help='a debugging option for relax developers to turn on all blacklisted tests, even those that will fail') parser.add_option_group(group) # Recognised command line options for debugging. @@ -388,6 +389,11 @@ if options.tt: self.test_timings = True + # Run blacklisted tests. + status.skip_blacklisted_tests = True + if options.no_skip: + status.skip_blacklisted_tests = False + # The argument is a script. else: # Number of positional arguments should only be 0 or 1. 1 should be the script file. Modified: trunk/test_suite/relax_test_loader.py URL: http://svn.gna.org/viewcvs/relax/trunk/test_suite/relax_test_loader.py?rev=26011&r1=26010&r2=26011&view=diff ============================================================================== --- trunk/test_suite/relax_test_loader.py (original) +++ trunk/test_suite/relax_test_loader.py Wed Sep 24 14:51:22 2014 @@ -56,7 +56,7 @@ test_case = testCaseClass(testCaseNames[i]) # Skip. - if status.skipped_tests and testCaseNames[i] in list(zip(*status.skipped_tests))[0]: + if status.skip_blacklisted_tests and status.skipped_tests and testCaseNames[i] in list(zip(*status.skipped_tests))[0]: continue # Append the test case. Modified: trunk/test_suite/test_suite_runner.py URL: http://svn.gna.org/viewcvs/relax/trunk/test_suite/test_suite_runner.py?rev=26011&r1=26010&r2=26011&view=diff ============================================================================== --- trunk/test_suite/test_suite_runner.py (original) +++ trunk/test_suite/test_suite_runner.py Wed Sep 24 14:51:22 2014 @@ -283,7 +283,8 @@ title(file=sys.stdout, text="Summary of the relax test suite") # The skipped tests. - self.summary_skipped() + if status.skip_blacklisted_tests: + self.summary_skipped() # Subtitle. section(file=sys.stdout, text="Synopsis")