Changeset: 6bd013cf6254 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/6bd013cf6254
Modified Files:
        testing/Mtest.py.in
Branch: Jul2021
Log Message:

Catch not starting of server.


diffs (23 lines):

diff --git a/testing/Mtest.py.in b/testing/Mtest.py.in
--- a/testing/Mtest.py.in
+++ b/testing/Mtest.py.in
@@ -1374,6 +1374,9 @@ def PerformDir(env, testdir, testlist, a
                                             pollfile)
                         os.chdir(TSTTRGDIR)
                         pSrvr.LaunchIt()
+                        if pSrvr.port is None:
+                            print('\nFailed to start server.\n')
+                            break
                         os.environ['MAPIPORT'] = env['MAPIPORT'] = pSrvr.port
                         SetExecEnv(env['exe'],pSrvr.port,verbose)
                     if global_timeout and start_time + global_timeout < 
time.time():
@@ -2764,6 +2767,9 @@ def DoIt(env, SERVER, CALL, TST, EXT, Te
                 Srvr.extend(mserver5_opts)
                 pSrvr = ServerClass(Srvr, SrvrOut, SrvrErr, TIMEOUT, 
os.path.join(dbpath, '.started'))
                 pSrvr.LaunchIt()
+                if pSrvr.port is None:
+                    print('\nFailed to start server.\n')
+                    return 'serverfail'
                 os.environ['MAPIPORT'] = env['MAPIPORT'] = pSrvr.port
                 SetExecEnv(exe,pSrvr.port,verbose)
             else:
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to