ci-ppc64le: disable sanitizer test
The latest Ubuntu docker container on ppc64le has caused the sanitizer
tests to start failing within the PLDM repository. Until we can figure
this out, disable these tests on ppc64le machines.
See openbmc/openbmc-build-scripts#31 for details
Tested:
- Verified PLDM repo now passes CI on ppc64le machine
Change-Id: I0774dae7a78144cca7d183eb736ac816fd0d242b
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
diff --git a/scripts/unit-test.py b/scripts/unit-test.py
index b8f9bcb..c1206fb 100755
--- a/scripts/unit-test.py
+++ b/scripts/unit-test.py
@@ -448,7 +448,14 @@
'-fsanitize=undefined', '-o', exe, src],
stdout=devnull, stderr=devnull)
check_call([exe], stdout=devnull, stderr=devnull)
- return True
+
+ # TODO - Sanitizer not working on ppc64le
+ # https://github.com/openbmc/openbmc-build-scripts/issues/31
+ if (platform.processor() == 'ppc64le'):
+ sys.stderr.write("###### ppc64le is not sanitize safe ######\n")
+ return False
+ else:
+ return True
except:
sys.stderr.write("###### Platform is not sanitize safe ######\n")
return False