From 569230a2afdf6686e24d4caa5d4ade3e53caefa4 Mon Sep 17 00:00:00 2001 From: Russ Magee Date: Sun, 13 Sep 2020 21:29:09 -0700 Subject: [PATCH] Fixed .xs_id file save/restore during tests --- bacillus/ci_pushbuild.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/bacillus/ci_pushbuild.sh b/bacillus/ci_pushbuild.sh index 5650f8f..a2d2eff 100755 --- a/bacillus/ci_pushbuild.sh +++ b/bacillus/ci_pushbuild.sh @@ -37,8 +37,8 @@ go test -v . ############ stage "Test(Authtoken)" ############ -echo "Clearing test user $USER ~/.xs_id file ..." if [ -f ~/.xs_id ]; then + echo "Clearing test user $USER ~/.xs_id file ..." mv ~/.xs_id ~/.xs_id.bak fi echo "Setting dummy authtoken in ~/.xs_id ..." @@ -53,6 +53,11 @@ else unset tokentest fi +if [ -f ~/.xs_id.bak ]; then + echo "Restoring test user $USER ~/.xs_id file ..." + mv ~/.xs_id.bak ~/.xs_id +fi + ############ stage "Test(S->C)" ############