{
echo "############### $@" >> $RESULTS 2>&1
if [ "$TEST_LOG" = 'tty' ]; then echo "CMD: $@" > /dev/tty; fi
- "$@" >> $RESULTS 2>&1 || _fail "failed: $@"
+ if [ "$1" = 'root_helper' ]; then
+ "$@" >> $RESULTS 2>&1 || _fail "failed: $@"
+ else
+ $INSTRUMENT "$@" >> $RESULTS 2>&1 || _fail "failed: $@"
+ fi
}
# same as run_check but the stderr+stdout output is duplicated on stdout and
{
echo "############### $@" >> $RESULTS 2>&1
if [ "$TEST_LOG" = 'tty' ]; then echo "CMD(stdout): $@" > /dev/tty; fi
- "$@" 2>&1 | tee -a $RESULTS || _fail "failed: $@"
+ if [ "$1" = 'root_helper' ]; then
+ "$@" 2>&1 | tee -a $RESULTS || _fail "failed: $@"
+ else
+ $INSTRUMENT "$@" 2>&1 | tee -a $RESULTS || _fail "failed: $@"
+ fi
}
# same as run_check but does not fail the test, output is logged
{
echo "############### $@" >> $RESULTS 2>&1
if [ "$TEST_LOG" = 'tty' ]; then echo "CMD(mayfail): $@" > /dev/tty; fi
- "$@" >> $RESULTS 2>&1 || _log "failed (ignored): $@"
+ if [ "$1" = 'root_helper' ]; then
+ "$@" >> $RESULTS 2>&1 || _log "failed (ignored): $@"
+ else
+ $INSTRUMENT "$@" >> $RESULTS 2>&1 || _log "failed (ignored): $@"
+ fi
}
check_prereq()