Commit e24350c7 authored by Anas Nashif's avatar Anas Nashif
Browse files

sanitycheck: do not run if we do not have nsimdrv



Check if we have nSim simulator in path, if not, just test build without
attempting to run.

Signed-off-by: default avatarAnas Nashif <anas.nashif@intel.com>
parent 99f5a6cf
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -181,6 +181,8 @@ from xml.sax.saxutils import escape
from collections import OrderedDict
from itertools import islice
from functools import cmp_to_key
from pathlib import Path
from distutils.spawn import find_executable

import logging
from sanity_chk import scl
@@ -1034,6 +1036,7 @@ class MakeGenerator:
        elif ti.platform.type == "native" and do_run:
            type = "native"
        elif ti.platform.simulation == "nsim" and do_run:
            if find_executable("nsimdrv"):
                type = "nsim"
        elif options.device_testing and (not ti.build_only) and (not options.build_only):
            type = "device"