Commit 8b13ec85 authored by Morten Knutsen's avatar Morten Knutsen
Browse files

Make it possible to check paths in scripts even when nothing has been changed.

parent 741c05d6
......@@ -108,9 +108,9 @@ class ScriptEngine():
print >> sys.stderr, "Syntax error at line %d: Missing 'begin' statement before 'assert'" % self.current_line
self.state = self.STATE_ERROR
return
if not self.state == self.STATE_SIM:
print >> sys.stderr, "Warning: assertion not computed, nothing has been changed! (line %d)" % self.current_line
return
#if not self.state == self.STATE_SIM:
# print >> sys.stderr, "Warning: assertion not computed, nothing has been changed! (line %d)" % self.current_line
# return
if args[3] == 'eq' and args[4] == 'saved-path':
self.loaddata = self._read_savedata()
link_key = "%s###%s" % (args[1], args[2])
......@@ -120,7 +120,7 @@ class ScriptEngine():
else:
simpaths = self.simulation.path(args[1], args[2])[1]
if not self.loaddata[link_key] == simpaths:
print >> sys.stderr, " FAIL: Assertion failed (line %d)" % self.current_line
print >> sys.stderr, " FAIL: Assertion failed for %s -> %s (line %d)" % (self.current_line, args[1], args[2])
print >> sys.stderr, " Got: %s" % ("\n ".join(map(str, simpaths)))
print >> sys.stderr, " Expected: %s" % ("\n ".join(map(str, self.loaddata[link_key])))
self.state = self.STATE_FAIL
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment