test
This commit is contained in:
11
run_tests
11
run_tests
@ -1,12 +1,17 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
if [ "$USER" != "root" ]; then
|
||||||
|
echo "Need root to do proper zfs testing"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
#reactivate python environment, if any (usefull in Travis)
|
#reactivate python environment, if any (usefull in Travis)
|
||||||
source $VIRTUAL_ENV/bin/activate || true
|
source $VIRTUAL_ENV/bin/activate || true
|
||||||
|
|
||||||
# test needs ssh access to localhost for testing
|
# test needs ssh access to localhost for testing
|
||||||
if ! [ -t ~/.ssh/id_rsa ]; then
|
if ! [ -t /root/.ssh/id_rsa ]; then
|
||||||
ssh-keygen -t rsa -f ~/.ssh/id_rsa -P '' || exit 1
|
ssh-keygen -t rsa -f /root/.ssh/id_rsa -P '' || exit 1
|
||||||
cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys || exit 1
|
cat /root/.ssh/id_rsa.pub >> /root/.ssh/authorized_keys || exit 1
|
||||||
ssh -oStrictHostKeyChecking=no localhost true || exit 1
|
ssh -oStrictHostKeyChecking=no localhost true || exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user