sanitycheck: fix legacy device testing support
When testing with one device and without a hardware map, make sure we
load the temporary map into the suite.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
diff --git a/scripts/sanitycheck b/scripts/sanitycheck
index f640281..96cfdef 100755
--- a/scripts/sanitycheck
+++ b/scripts/sanitycheck
@@ -718,6 +718,7 @@
command = [get_generator()[0], "-C", self.build_dir, "flash"]
while not self.device_is_available(self.instance.platform.name):
+ #logger.debug("Waiting for device to become available...")
time.sleep(1)
hardware = self.get_available_device(self.instance.platform.name)
@@ -4017,6 +4018,7 @@
elif options.device_serial: # back-ward compatibility
if options.platform and len(options.platform) == 1:
hwm.load_device_from_cmdline(options.device_serial, options.platform[0])
+ suite.connected_hardware = hwm.connected_hardware
else:
logger.error("""When --device-testing is used with --device-serial, only one
platform is allowed""")