tests: Skip SPARC tests if the required binaries are missing
authorAndreas Sandberg <andreas.sandberg@arm.com>
Tue, 7 Jul 2015 08:51:03 +0000 (09:51 +0100)
committerAndreas Sandberg <andreas.sandberg@arm.com>
Tue, 7 Jul 2015 08:51:03 +0000 (09:51 +0100)
The full-system SPARC tests depend on several binaries that aren't
generally available to the wider community. Flag the tests as skipped
instead of failed if these binaries can't be found.

tests/configs/t1000-simple-atomic.py

index 96357f40c7cbf32ad0ab90f0768c9e05769fd1d3..209cb28131a1b0838e660be652df9a47862b5727 100644 (file)
@@ -31,7 +31,11 @@ from m5.objects import *
 m5.util.addToPath('../configs/common')
 import FSConfig
 
-system = FSConfig.makeSparcSystem('atomic')
+try:
+    system = FSConfig.makeSparcSystem('atomic')
+except IOError as e:
+    skip_test(reason=str(e))
+
 system.voltage_domain = VoltageDomain()
 system.clk_domain = SrcClockDomain(clock = '1GHz',
                                    voltage_domain = system.voltage_domain)