diff --git a/offload/test/lit.cfg b/offload/test/lit.cfg index 0725b56f0f05d..df57be293138c 100644 --- a/offload/test/lit.cfg +++ b/offload/test/lit.cfg @@ -36,8 +36,7 @@ if 'HSA_ENABLE_SDMA' in os.environ: # Architectures like gfx942 may or may not be APUs so an additional environment # variable is required as some tests can be APU specific. -if 'IS_APU' in os.environ: - config.environment['IS_APU'] = os.environ['IS_APU'] +config.environment['IS_APU'] = os.environ.get('IS_APU', '0') # set default environment variables for test if 'CHECK_OPENMP_ENV' in os.environ: