Skip to content

Commit

Permalink
Debugging test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
bzbarsky-apple committed Sep 23, 2024
1 parent d39792c commit 11f950f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion scripts/tests/chiptest/test_definition.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,20 @@ def stop(self):
return False

def factoryReset(self):
logging.error("FACTORY RESET: %s" % self.command)
logging.error("self.killed: %s" % self.killed)
wasRunning = (not self.killed) and self.stop()
logging.error("wasRunning: %s" % wasRunning)

for kvs in self.kvsPathSet:
if os.path.exists(kvs):
logging.error("UNLINKING: %s" % kvs)
os.unlink(kvs)

if wasRunning:
return self.start()
started = self.start()
logging.error("STARTED: %s" % started)
return started

return True

Expand Down

0 comments on commit 11f950f

Please sign in to comment.