mirror of https://gogs.blitter.com/RLabs/xs
Fixed CI script
This commit is contained in:
parent
8827d67cc6
commit
ae67ee6201
|
@ -46,12 +46,12 @@ go test -v .
|
||||||
############
|
############
|
||||||
stage "Test(Authtoken)"
|
stage "Test(Authtoken)"
|
||||||
############
|
############
|
||||||
if [ -f ~/.xs_id ]; then
|
if [ -f ~/.config/xs/.xs_id ]; then
|
||||||
echo "Clearing test user $USER ~/.xs_id file ..."
|
echo "Clearing test user $USER .xs_id file ..."
|
||||||
mv ~/.xs_id ~/.xs_id.bak
|
mv ~/.config/xs/.xs_id ~/.config/xs/.xs_id.bak
|
||||||
fi
|
fi
|
||||||
echo "Setting dummy authtoken in ~/.xs_id ..."
|
echo "Setting dummy authtoken in .xs_id ..."
|
||||||
echo "localhost:${USER}:asdfasdfasdf" >~/.xs_id
|
echo "localhost:${USER}:asdfasdfasdf" >~/.config/xs/.xs_id
|
||||||
echo "Performing remote command on @localhost via authtoken login ..."
|
echo "Performing remote command on @localhost via authtoken login ..."
|
||||||
tokentest=$(timeout 10 xs -x "echo -n FOO" @localhost)
|
tokentest=$(timeout 10 xs -x "echo -n FOO" @localhost)
|
||||||
if [ "${tokentest}" != "FOO" ]; then
|
if [ "${tokentest}" != "FOO" ]; then
|
||||||
|
@ -91,9 +91,9 @@ stage "Test(xc C->S)"
|
||||||
############
|
############
|
||||||
echo "TODO ..."
|
echo "TODO ..."
|
||||||
|
|
||||||
if [ -f ~/.xs_id.bak ]; then
|
if [ -f ~/.config/xs/.xs_id.bak ]; then
|
||||||
echo "Restoring test user $USER ~/.xs_id file ..."
|
echo "Restoring test user $USER .xs_id file ..."
|
||||||
mv ~/.xs_id.bak ~/.xs_id
|
mv ~/.config/xs/.xs_id.bak ~/.config/xs/.xs_id
|
||||||
fi
|
fi
|
||||||
|
|
||||||
############
|
############
|
||||||
|
|
Loading…
Reference in New Issue