sanitycheck: fix test names to be same as before

Add the last path information in the testcase root to the
test name, so that there is much less of chance of name
collisions and the reports come out with the same names
as before.

Change-Id: I75ed6ee96251058dd2547e57be31db3c2517a497
Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
Andrew Boie 2016-04-08 13:31:53 -07:00
commit 14ac902633

View file

@ -991,7 +991,8 @@ class TestCase:
self.timeout = tc_dict["timeout"]
self.build_only = tc_dict["build_only"]
self.slow = tc_dict["slow"]
self.path = os.path.join(workdir, name)
self.path = os.path.join(os.path.basename(os.path.abspath(testcase_root)),
workdir, name)
self.name = self.path # for now
self.defconfig = {}
self.ktype = None