From 421c6cf95160f55b0b4d4e2ab10de1579e99f956 Mon Sep 17 00:00:00 2001 From: Serge Hallyn Date: Fri, 24 Feb 2023 22:25:58 -0600 Subject: [PATCH] tests: remove some github runner PATH tweaking It messes with the expected results. We can do better than this in the expect scripts, but let's get things running for now. Signed-off-by: Serge Hallyn --- tests/common/config.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/common/config.sh b/tests/common/config.sh index 664d1056..9b3d37a6 100644 --- a/tests/common/config.sh +++ b/tests/common/config.sh @@ -21,6 +21,13 @@ save_config () mkdir -p "tmp/$(dirname "$file")" [ -f "/$file" ] && cp -dp "/$file" "tmp/$file" || true done + # remove some things which can mess up PATH for some of our tests + # on github runners + mkdir -p "tmp/root" + cp -dp /root/.bashrc tmp/root/.bashrc + cp -dp /root/.profile tmp/root/.profile + sed -i '/pipx/d' /root/.bashrc /root/.profile + sed -i '/etc\/skel\/.cargo\/env/d' /root/.bashrc /root/.profile } # Copy the config files from config to the system