simple support for disabling tests
This commit is contained in:
@@ -7,6 +7,7 @@ import sys
|
|||||||
import os
|
import os
|
||||||
import sqlite3
|
import sqlite3
|
||||||
import warnings
|
import warnings
|
||||||
|
from greentest.test_support import disabled_marker
|
||||||
|
|
||||||
warnings.simplefilter('ignore')
|
warnings.simplefilter('ignore')
|
||||||
|
|
||||||
@@ -38,7 +39,11 @@ def main():
|
|||||||
print arg, 'finished with code', returncode
|
print arg, 'finished with code', returncode
|
||||||
stdout = file(output_name).read()
|
stdout = file(output_name).read()
|
||||||
if not debug:
|
if not debug:
|
||||||
if returncode!=1:
|
if returncode==1:
|
||||||
|
pass
|
||||||
|
elif returncode==8 and disabled_marker in stdout:
|
||||||
|
pass
|
||||||
|
else:
|
||||||
record(changeset, argv, stdout, returncode)
|
record(changeset, argv, stdout, returncode)
|
||||||
os.unlink(output_name)
|
os.unlink(output_name)
|
||||||
sys.exit(returncode)
|
sys.exit(returncode)
|
||||||
|
@@ -5,6 +5,10 @@ if __name__ != 'greentest.test_support':
|
|||||||
|
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
disabled_marker = '-*-*-*-*-*- disabled -*-*-*-*-*-'
|
||||||
|
def exit_disabled():
|
||||||
|
sys.exit(disabled_marker)
|
||||||
|
|
||||||
class Error(Exception):
|
class Error(Exception):
|
||||||
"""Base class for regression test exceptions."""
|
"""Base class for regression test exceptions."""
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user