--- /dev/null
+import os
+
+if not 'AVR' in config.root.targets:
+ config.unsupported = True
+
+# We can only run avrlit tests if we have a board set up.
+if not os.environ["AVRLIT_PORT"] or not os.environ["AVRLIT_BOARD"]:
+ config.unsupported = True
'LD_PRELOAD', 'ASAN_OPTIONS', 'UBSAN_OPTIONS',
'LSAN_OPTIONS', 'ADB', 'ANDROID_SERIAL',
'SANITIZER_IGNORE_CVE_2016_2143', 'TMPDIR', 'TMP', 'TEMP',
- 'TEMPDIR']
+ 'TEMPDIR', 'AVRLIT_BOARD', 'AVRLIT_PORT']
for var in pass_vars:
val = os.environ.get(var, '')
# Check for empty string as some variables such as LD_PRELOAD cannot be empty