mirror of
https://github.com/Llewellynvdm/Tomb.git
synced 2024-11-26 06:46:30 +00:00
small fixes to run clean tests
This commit is contained in:
parent
cb699189e7
commit
5996beab0e
@ -27,7 +27,7 @@ dummypassnew=changetest
|
|||||||
|
|
||||||
GLOBAL_RESULT=0
|
GLOBAL_RESULT=0
|
||||||
|
|
||||||
notice() { print; yes "${@}"; print; }
|
notice() { print; _message "${@}"; print; }
|
||||||
error() { _warning " ${@}"; }
|
error() { _warning " ${@}"; }
|
||||||
tt() {
|
tt() {
|
||||||
start_loops=(`sudo losetup -a |cut -d: -f1`)
|
start_loops=(`sudo losetup -a |cut -d: -f1`)
|
||||||
@ -122,10 +122,7 @@ test-bind-hooks() {
|
|||||||
else
|
else
|
||||||
error "Bind hook on file reports incongruence"
|
error "Bind hook on file reports incongruence"
|
||||||
fi
|
fi
|
||||||
rm -f "/media/test/$bindtest"
|
|
||||||
tt close test
|
tt close test
|
||||||
# Remove test file in HOME
|
|
||||||
rm -f "$HOME/$bindtest"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
test-set-key() {
|
test-set-key() {
|
||||||
@ -166,7 +163,7 @@ test-regression() {
|
|||||||
|
|
||||||
OLDT="/tmp/tomb-regression/tomb"
|
OLDT="/tmp/tomb-regression/tomb"
|
||||||
version=`${OLDT} -v |& awk 'NR==1 {print $3}'`
|
version=`${OLDT} -v |& awk 'NR==1 {print $3}'`
|
||||||
yes "tomb version: $version"
|
_message "tomb version: $version"
|
||||||
tests+=(oldnew-$version newold-$version)
|
tests+=(oldnew-$version newold-$version)
|
||||||
|
|
||||||
sudo rm -f /tmp/regression-test.tomb{,.key}
|
sudo rm -f /tmp/regression-test.tomb{,.key}
|
||||||
|
Loading…
Reference in New Issue
Block a user