Commit 920c3efb authored by Christopher Turner's avatar Christopher Turner

Reload panda state to known start point

parent 627f34b4
......@@ -4,9 +4,11 @@ import read_config as cfg
import importlib
import socket
import time
import os
class RunTests(object):
def __init__(self, configpath, hostname, cmdport):
self.hostname = hostname
self.config = self.get_config(configpath)
self.test_modules = self.import_modules()
self.cmdsock = self.setup_connection(hostname, cmdport)
......@@ -46,7 +48,9 @@ class RunTests(object):
test_cls = getattr(module, self.config[module_name])
tst = test_cls(self.cmdsock, timestr)
cls_list.append(tst)
#RESTORE PANDASTATE HERE!!!
#restore the panda state to make sure we have a known start point
os.system(
"./load-state {} base.state".format(self.hostname))
tst.run()
tst.get_summary()
except AttributeError:
......
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