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 <serge@hallyn.com>
This commit is contained in:
Serge Hallyn 2023-02-24 22:25:58 -06:00
parent a72065a108
commit 421c6cf951

View File

@ -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