[dv regr tool] Possible fixes for crash / freeze
- Reduced max parallel from 32 to 16
- Changed the command to move the test result links from mv to ln (more
stable)
- Test not found in regressions does not cause script to exit (just
throws an error and runs whatever it could find)
Signed-off-by: Srikrishna Iyer <sriyer@google.com>
diff --git a/util/dvsim/Deploy.py b/util/dvsim/Deploy.py
index e6b0291..157e0da 100644
--- a/util/dvsim/Deploy.py
+++ b/util/dvsim/Deploy.py
@@ -236,9 +236,14 @@
if self.status == '.':
log.error("Method unexpectedly called!")
else:
- cmd = "mv " + self.sim_cfg.links['D'] + "/" + self.odir_ln + " " + \
- self.sim_cfg.links[self.status] + "/."
- os.system(cmd)
+ old_link = self.sim_cfg.links['D'] + "/" + self.odir_ln
+ new_link = self.sim_cfg.links[self.status] + "/" + self.odir_ln
+ cmd = "ln -s " + self.odir + " " + new_link + "; "
+ cmd += "rm " + old_link
+ try:
+ os.system(cmd)
+ except Exception as e:
+ log.error("Cmd \"%s\" could not be run", cmd)
def get_status(self):
if self.status != ".": return
diff --git a/util/dvsim/Modes.py b/util/dvsim/Modes.py
index c7096d2..4c9860a 100644
--- a/util/dvsim/Modes.py
+++ b/util/dvsim/Modes.py
@@ -532,7 +532,6 @@
log.error(
"Test \"%s\" added to regression \"%s\" not found!",
test, regression_obj.name)
- sys.exit(1)
tests_objs.append(test_obj)
regression_obj.tests = tests_objs