Commit 43275c8e authored by Anas Nashif's avatar Anas Nashif
Browse files

sanitycheck: raise exception on harness without a config



console harness without a harness_config is not allowed.

Signed-off-by: default avatarAnas Nashif <anas.nashif@intel.com>
parent 5677eb0a
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -2453,6 +2453,8 @@ class TestSuite:
                        tc.timeout = tc_dict["timeout"]
                        tc.harness = tc_dict["harness"]
                        tc.harness_config = tc_dict["harness_config"]
                        if tc.harness == 'console' and not tc.harness_config:
                            raise Exception('Harness config error: console harness defined without a configuration.')
                        tc.build_only = tc_dict["build_only"]
                        tc.build_on_all = tc_dict["build_on_all"]
                        tc.slow = tc_dict["slow"]