Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 18 additions & 3 deletions .ci/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,12 @@ def runMultitest( self, tests ) :
for testIdx, opt in enumerate( individualTestOpts ) :
opt.testsConfig = testDirs[testIdx] + "/" + os.path.basename( self.globalOpts_.testsConfig )

if testDirs :
self.log_push()
for testIdx, opt in enumerate( individualTestOpts ) :
self.log( "Test [{test}] will run {config} from {cwd}".format( test=opt.tests[0], config=opt.testsConfig, cwd=os.getcwd() ) )
self.log_pop()

self.log_pop()

self.log( "Spawning process pool of size {0} to perform {1} tests".format( self.globalOpts_.pool, len(tests) ) )
Expand Down Expand Up @@ -432,6 +438,10 @@ def runMultitest( self, tests ) :

# main entry point for testing
def run( self, tests ) :
currentDir = os.getcwd()
self.log( "Storing current working directory [{cwd}]".format( cwd=currentDir ) )
self.log( " Will return to this directory at the end of testing" )

for test in tests :
if test not in self.tests_.keys() :
msg = "Error: no test named '{0}'".format( test )
Expand All @@ -443,18 +453,23 @@ def run( self, tests ) :
self.setWorkingDirectory()

# Let joining steps into a single HPC job take precedence
success = True
logs = []
if self.globalOpts_.forceSingle :
success = True
logs = []
for test in tests :
success = success and self.tests_[ test ].run()
logs.append( self.tests_[ test ].logfile_ )
return success, logs
else :
if hasattr( self.globalOpts_, 'joinHPC' ) :
return self.runHPCJoin( tests )
success, logs = self.runHPCJoin( tests )
else :
return self.runMultitest( tests )
success, logs = self.runMultitest( tests )

# Popping back to old cwd
os.chdir( currentDir )
return success, logs

# A separated helper function to wrap this in a callable format
def runSuite( options ) :
Expand Down
Loading