Skip to content

Commit

Permalink
[hack] vmcheck: Work around an exception
Browse files Browse the repository at this point in the history
Not sure why this is happening, adding a hack for now.
  • Loading branch information
cgwalters committed Mar 17, 2017
1 parent 636db9e commit c2fb2bb
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions tests/vmcheck/multitest.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,12 @@ def flush(self):
rc = self._p.wait()

# just merge the two files
with open("vmcheck/%s.out" % self.test) as f:
with open("vmcheck/%s.log" % self.test, 'a') as j:
j.write(f.read())
os.remove("vmcheck/%s.out" % self.test)
outfile = "vmcheck/{}.out".format(self.test)
if os.path.isfile(outfile):
with open(outfile) as f:
with open("vmcheck/%s.log" % self.test, 'a') as j:
j.write(f.read())
os.remove(outfile)

rcs = "PASS" if rc == 0 else ("FAIL (rc %d)" % rc)
print("%s: %s" % (rcs, self.test))
Expand Down

0 comments on commit c2fb2bb

Please sign in to comment.