From 46301140a4c38c327c5b477fedf95913b8170091 Mon Sep 17 00:00:00 2001 From: jeffreyc-splunk Date: Tue, 3 Oct 2023 10:53:12 -0400 Subject: [PATCH] Update test for centos/oraclelinux 7 arm64 --- .../packaging/tests/instrumentation/instrumentation_test.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/internal/buildscripts/packaging/tests/instrumentation/instrumentation_test.py b/internal/buildscripts/packaging/tests/instrumentation/instrumentation_test.py index ff0afc5199..580d7fc486 100644 --- a/internal/buildscripts/packaging/tests/instrumentation/instrumentation_test.py +++ b/internal/buildscripts/packaging/tests/instrumentation/instrumentation_test.py @@ -300,6 +300,11 @@ def test_express_instrumentation(distro, arch): # minimum supported node version required for profiling node_version = 16 + if arch == "arm64" and distro in ("centos-7", "oraclelinux-7"): + # g++ for these distros is too old to install splunk-otel-js with node v16: + # g++: error: unrecognized command line option '-std=gnu++14' + # use the minimum supported node version without profiling instead + node_version = 14 buildargs = {"NODE_VERSION": f"v{node_version}"}