- il recovery test fixed to allow il run under a different account.
SYS_ECHO=echo
SYS_DOMAINNAME=domainname
SYS_CURL=curl
+SYS_RM="rm -f"
+SYS_CHMOD=chmod
# not used at the moment
DEBUG=2
${LBPURGE} -j ${joblist}
- rm ${joblist}
+ $SYS_RM ${joblist}
}
if [ $flag -ne 1 ]; then
cat $logfile
- rm $logfile
+ $SYS_RM $logfile
fi
exit $TEST_OK
test_done
fi
- rm https.$$.tmp
+ $SYS_RM https.$$.tmp
fi
test_done
fi
- rm https.$$.tmp
+ $SYS_RM https.$$.tmp
fi
test_done
fi
- rm https.$$.tmp
+ $SYS_RM https.$$.tmp
fi
if [ $flag -ne 1 ]; then
cat $logfile
- rm $logfile
+ $SYS_RM $logfile
fi
exit $TEST_OK
# log events:
printf "Generating events resulting in CLEARED state\n"
+ #Make sure the il is able to access the file, whatever account it is running under.
+ $SYS_TOUCH $EVENTFILE.$UNIQUE
+ $SYS_CHMOD 666 $EVENTFILE.$UNIQUE
+
generate_done_events "$EVENTFILE.$UNIQUE" "$USERIDENTITY" "$DOMAINNAME" $jobid
#Stopping interlogger (if required)
if [ $flag -ne 1 ]; then
cat $logfile
- rm $logfile
+ $SYS_RM $logfile
fi
exit $TEST_OK
if [ $flag -ne 1 ]; then
cat $logfile
- rm $logfile
+ $SYS_RM $logfile
fi
exit $TEST_OK
if [ $flag -ne 1 ]; then
cat $logfile
- rm $logfile
+ $SYS_RM $logfile
fi
exit $TEST_OK
fi
echo Cleaning up
- rm events.tested.$$.txt
- rm events.reference.$$.txt
+ $SYS_RM events.tested.$$.txt
+ $SYS_RM events.reference.$$.txt
else
test_failed
echo ""
if [ $flag -ne 1 ]; then
cat $logfile
- rm $logfile
+ $SYS_RM $logfile
fi
exit $TEST_OK
if [ $flag -ne 1 ]; then
cat $logfile
- rm $logfile
+ $SYS_RM $logfile
fi
exit $TEST_OK
if [ $flag -ne 1 ]; then
cat $logfile
- rm $logfile
+ $SYS_RM $logfile
fi
exit $TEST_OK
test_failed
fi
- rm $$_notifications.txt
+ $SYS_RM $$_notifications.txt
#Drop notification
printf "Dropping the test notification (${notifid})"
if [ $flag -ne 1 ]; then
cat $logfile
- rm $logfile
+ $SYS_RM $logfile
fi
exit $TEST_OK
test_failed
fi
- rm $$_notifications.txt
+ $SYS_RM $$_notifications.txt
printf "Changing notification ... "
$LBNOTIFY change ${notifid} ${otherjobid}
test_failed
fi
- rm $$_notifications.txt
+ $SYS_RM $$_notifications.txt
#Drop notification
printf "Dropping the test notification (${notifid})"
if [ $flag -ne 1 ]; then
cat $logfile
- rm $logfile
+ $SYS_RM $logfile
fi
exit $TEST_OK
test_failed
fi
- rm $$_notifications.txt
+ $SYS_RM $$_notifications.txt
#Drop notification
printf "Dropping the test notification (${notifid})"
if [ $flag -ne 1 ]; then
cat $logfile
- rm $logfile
+ $SYS_RM $logfile
fi
exit $TEST_OK
if [ $flag -ne 1 ]; then
cat $logfile
- rm $logfile
+ $SYS_RM $logfile
fi
exit $TEST_OK
if [ $flag -ne 1 ]; then
cat $logfile
- rm $logfile
+ $SYS_RM $logfile
fi
exit $TEST_OK
if [ $flag -ne 1 ]; then
cat $logfile
- rm $logfile
+ $SYS_RM $logfile
fi
exit $TEST_OK
if [ $flag -ne 1 ]; then
cat $logfile
- rm $logfile
+ $SYS_RM $logfile
fi
exit $TEST_OK