From 1418c44189e4fbcaa60d352d48b5595b6c8af007 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sat, 18 Dec 2021 18:46:44 +0000 Subject: [PATCH] bit more verbose info about number of instructions run --- src/openpower/test/runner.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/openpower/test/runner.py b/src/openpower/test/runner.py index 1bce1f39..8987c3f1 100644 --- a/src/openpower/test/runner.py +++ b/src/openpower/test/runner.py @@ -306,9 +306,13 @@ class TestRunnerBase(FHDLTestCase): # do actual comparison, against last item last_sim.compare(test.expected) + # check number of instructions run (sanity) if self.run_hdl and self.run_sim: - self.assertTrue(len(hdl_states) == len(sim_states), - "number of instructions run not the same") + n_hdl = len(hdl_states) + n_sim = len(sim_states) + self.assertTrue(n_hdl == n_sim, + "number of instructions %d %d " + "run not the same" % (n_hdl, n_sim)) ###### END OF A TEST ####### # StateRunner.end_test() -- 2.30.2