Changeset: 6361cfe7e46e for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/6361cfe7e46e
Modified Files:
testing/Mtest.py.in
Branch: Sep2022
Log Message:
Separate failure mode in Mtest/Mz for when a server can't be started for a
directory.
diffs (37 lines):
diff --git a/testing/Mtest.py.in b/testing/Mtest.py.in
--- a/testing/Mtest.py.in
+++ b/testing/Mtest.py.in
@@ -347,7 +347,7 @@ import argparse
import threading
-(F_SKIP, F_OK, F_WARN, F_SOCK, F_ERROR, F_TIME, F_ABRT, F_RECU, F_SEGV) =
range(9)
+(F_SKIP, F_OK, F_WARN, F_SOCK, F_ERROR, F_TIME, F_ABRT, F_RECU, F_SEGV,
F_FAIL) = range(10)
FAILURES = {
F_SKIP : ("F_SKIP", '-'),
@@ -359,6 +359,7 @@ FAILURES = {
F_ABRT : ("F_ABRT", 'A'),
F_RECU : ("F_RECU", 'R'),
F_SEGV : ("F_SEGV", 'C'),
+ F_FAIL : ("F_FAIL", 'F'),
}
CONDITIONALS = {
@@ -1050,6 +1051,8 @@ def AddHref (href, target, linktext, dif
klass = 'segfault'
elif diff == F_WARN:
klass = 'warning'
+ elif diff == F_FAIL:
+ klass = 'error'
else:
klass = 'good'
a = Element('a', {'href': href, 'target': target, 'class': klass,
@@ -1401,6 +1404,7 @@ def PerformDir(env, testdir, testlist, t
pSrvr.LaunchIt()
if pSrvr.port is None:
print('\nFailed to start server.\n')
+ FdOut = FdErr = F_FAIL
break
dbh = pymonetdb.connect(username='monetdb',
password='monetdb',
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]