small improvements (more output to screen)

This commit is contained in:
Martin Diehl 2012-01-26 15:26:21 +00:00
parent c6c9fd71de
commit 20a775e8d1
2 changed files with 15 additions and 3 deletions

View File

@ -96,9 +96,11 @@ class Marc(Solver):
else: cmd += ' -prog ' + user
print 'job submission with%s compilation: %s'%({False:'out',True:''}[compile],user)
if logfile:
log = open(logfile, 'w')
print(cmd)
self.p = subprocess.Popen(shlex.split(cmd),stdout = logfile,stderr = subprocess.STDOUT)
self.p = subprocess.Popen(shlex.split(cmd),stdout = log,stderr = subprocess.STDOUT)
log.close()
self.p.wait()
#--------------------------

View File

@ -33,8 +33,18 @@ class Test():
elif not self.compare(variant):
return variant
except:
return 1
return variant
return -1
# for variant in variants:
# self.prepare(variant)
# self.run(variant)
# self.postprocess(variant)
# if variant in update:
# self.update(variant)
# elif not self.compare(variant):
# return variant
# return -1
def clean(self):