git.stg.codes
/
stg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Ticket. The MaybeSet() function call for the 'change-policy' parameter added in
[stg.git]
/
functest
/
do.sh
diff --git
a/functest/do.sh
b/functest/do.sh
index 277a4b3510d5bf0071f984d6d69b44f5598f08cb..652dbcec329b0fbd8db48b0d291ca7ca6960761d 100755
(executable)
--- a/
functest/do.sh
+++ b/
functest/do.sh
@@
-4,7
+4,7
@@
MKTEMP=/usr/bin/mktemp
RM=/bin/rm
printf "Creating temporary dir... "
RM=/bin/rm
printf "Creating temporary dir... "
-DIR=`$MKTEMP -d`
+DIR=`$MKTEMP -d
2> /dev/null || $MKTEMP -d -t stg
`
if [ "$DIR" == "" ]
then
if [ "$DIR" == "" ]
then
@@
-35,16
+35,12
@@
then
printf "Failed.\n"
exit -1
else
printf "Failed.\n"
exit -1
else
- printf "Ok.\n
Testing...
"
+ printf "Ok.\n"
fi
fi
+
./test.sh "$DIR" # >> "$LOGFILE" 2>&1
./test.sh "$DIR" # >> "$LOGFILE" 2>&1
-if [ "$?" != "0" ]
-then
- printf "Failed.\n"
- exit -1
-else
- printf "Ok.\nCleaning up... "
-fi
+
+printf "Cleaning up... "
$RM -rf $DIR
if [ "$?" != "0" ]
$RM -rf $DIR
if [ "$?" != "0" ]