git://git.onelab.eu
/
tests.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
trailing spaces
[tests.git]
/
system
/
helpers.aliases
diff --git
a/system/helpers.aliases
b/system/helpers.aliases
index
4743d11
..
fd28452
100644
(file)
--- a/
system/helpers.aliases
+++ b/
system/helpers.aliases
@@
-5,13
+5,11
@@
local_defs=~/LocalTestResources.helpers
if [ -f $local_defs ] ; then
source $local_defs
else
if [ -f $local_defs ] ; then
source $local_defs
else
- echo "you should define qemuboxes and plcboxes in $local_defs"
- exit
+ echo "WARNING !! you should define qemuboxes and plcboxes in $local_defs"
fi
if [ -z "$qemuboxes" -o -z "$plcboxes" ] ; then
fi
if [ -z "$qemuboxes" -o -z "$plcboxes" ] ; then
- echo "you should define qemuboxes and plcboxes in $local_defs"
- exit
+ echo "WARNING !! you should define qemuboxes and plcboxes in $local_defs"
fi
########## list: from trackers, what should be
fi
########## list: from trackers, what should be
@@
-27,21
+25,21
@@
alias probe_all="probe_qemus ; probe_plcs"
########## cleanup: stop plc or kill qemus
function cleanup_qemus () {
for box in $qemuboxes ; do
########## cleanup: stop plc or kill qemus
function cleanup_qemus () {
for box in $qemuboxes ; do
- echo killing qemu instances in $box
- ssh root@$box pkill qemu
+
echo killing qemu instances in $box
+
ssh root@$box pkill qemu
done
if [ -f ~/tracker-qemus ] ; then
done
if [ -f ~/tracker-qemus ] ; then
- echo ~/cleaning tracker-qemus ; rm ~/tracker-qemus
+
echo ~/cleaning tracker-qemus ; rm ~/tracker-qemus
fi
}
function cleanup_plcs () {
for box in $plcboxes ; do
fi
}
function cleanup_plcs () {
for box in $plcboxes ; do
- echo stopping vserver instances in $box
- ssh root@$box 'cd /vservers ; for vsname in *; do echo -n "stop $vsname y/[n] ? "; read answer ; case $answer in nN) echo skipping $vsname ;; *) vserver $vsname stop ;; esac; done'
+
echo stopping vserver instances in $box
+
ssh root@$box 'cd /vservers ; for vsname in *; do echo -n "stop $vsname y/[n] ? "; read answer ; case $answer in nN) echo skipping $vsname ;; *) vserver $vsname stop ;; esac; done'
done
if [ -f ~/tracker-plcs ] ; then
done
if [ -f ~/tracker-plcs ] ; then
- echo ~/cleaning tracker-plcs
- rm ~/tracker-plcs
+
echo ~/cleaning tracker-plcs
+
rm ~/tracker-plcs
fi
}
alias cleanup_all="cleanup_qemus ; cleanup_plcs"
fi
}
alias cleanup_all="cleanup_qemus ; cleanup_plcs"