summaryrefslogtreecommitdiff
path: root/src/third_party/wiredtiger/test/suite/run.py
diff options
context:
space:
mode:
authorLuke Chen <luke.chen@mongodb.com>2019-08-28 00:23:10 +0000
committerevergreen <evergreen@mongodb.com>2019-08-28 00:23:10 +0000
commit33621eab05f101b161ae8834cb8efc3980e8f17f (patch)
treec417ac8ca14a888e7974e97146dab164e7744afd /src/third_party/wiredtiger/test/suite/run.py
parent60d8961a7db72f5e4a31c8017c4b7442f8e04c54 (diff)
downloadmongo-33621eab05f101b161ae8834cb8efc3980e8f17f.tar.gz
Import wiredtiger: 956384325e5ff99567ea7b63b1b87b7bb62c76b8 from branch mongodb-4.4
ref: 7dfd939186..956384325e for: 4.3.1 WT-4831 Add option to python tests to not fail if stdout is not empty WT-4935 Add a perf test to find out the wiredtiger_calc_modify overhead WT-5062 Adjust the record size to consume less size WT-5063 Return proper error message for cursor modify operation for not supported cursor types
Diffstat (limited to 'src/third_party/wiredtiger/test/suite/run.py')
-rwxr-xr-xsrc/third_party/wiredtiger/test/suite/run.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/third_party/wiredtiger/test/suite/run.py b/src/third_party/wiredtiger/test/suite/run.py
index 3de273c8ebf..0f86d5b4560 100755
--- a/src/third_party/wiredtiger/test/suite/run.py
+++ b/src/third_party/wiredtiger/test/suite/run.py
@@ -123,6 +123,7 @@ Options:\n\
-s N | --scenario N use scenario N (N can be number or symbolic)\n\
-t | --timestamp name WT_TEST according to timestamp\n\
-v N | --verbose N set verboseness to N (0<=N<=3, default=1)\n\
+ -i | --ignore-stdout dont fail on unexpected stdout or stderr\n\
\n\
Tests:\n\
may be a file name in test/suite: (e.g. test_base01.py)\n\
@@ -269,7 +270,7 @@ if __name__ == '__main__':
tests = unittest.TestSuite()
# Turn numbers and ranges into test module names
- preserve = timestamp = debug = dryRun = gdbSub = lldbSub = longtest = False
+ preserve = timestamp = debug = dryRun = gdbSub = lldbSub = longtest = ignoreStdout = False
parallel = 0
random_sample = 0
configfile = None
@@ -347,6 +348,9 @@ if __name__ == '__main__':
if verbose < 0:
verbose = 0
continue
+ if option == '--ignore-stdout' or option == 'i':
+ ignoreStdout = True
+ continue
if option == '-config' or option == 'c':
if configfile != None or len(args) == 0:
usage()
@@ -369,7 +373,7 @@ if __name__ == '__main__':
# That way, verbose printing can be done at the class definition level.
wttest.WiredTigerTestCase.globalSetup(preserve, timestamp, gdbSub, lldbSub,
verbose, wt_builddir, dirarg,
- longtest)
+ longtest, ignoreStdout)
# Without any tests listed as arguments, do discovery
if len(testargs) == 0: