Signed-off-by: Karel Zak <kzak@redhat.com>
ts_skip "no loop-device support"
}
-function ts_skip_subtest {
+function ts_report_skip {
ts_report " SKIPPED ($1)"
}
function ts_skip {
- ts_skip_subtest "$1"
+ ts_report_skip "$1"
ts_cleanup_on_exit
exit 0
exit $?
}
-function ts_ok_subtest {
+function ts_report_ok {
if [ x"$1" == x"" ]; then
ts_report " OK"
else
}
function ts_ok {
- ts_ok_subtest "$1"
+ ts_report_ok "$1"
exit 0
}
ts_failed_subtest "$1"
res=1
else
- ts_ok_subtest "$(tt_gen_mem_report "$1")"
+ ts_report_ok "$(tt_gen_mem_report "$1")"
fi
[ $res -ne 0 ] && TS_NSUBFAILED=$(( $TS_NSUBFAILED + 1 ))
return $res
}
+function ts_skip_subtest {
+ ts_report_skip "$1"
+ # reset environment back to parental test
+ ts_init_core_env
+
+}
+
function ts_finalize {
ts_cleanup_on_exit
do_chrt --fifo 1
do_chrt --fifo 99
cleanup_output
+ ts_finalize_subtest
fi
-ts_finalize_subtest
ts_init_subtest "batch"
if [ $? == 0 ]; then
do_chrt --batch 0
cleanup_output
+ ts_finalize_subtest
fi
-ts_finalize_subtest
ts_init_subtest "other"
if [ $? == 0 ]; then
do_chrt --other 0
cleanup_output
+ ts_finalize_subtest
fi
-ts_finalize_subtest
ts_init_subtest "rr"
do_chrt --rr 1
do_chrt --rr 99
cleanup_output
+ ts_finalize_subtest
fi
-ts_finalize_subtest
ts_init_subtest "idle"
if [ $? == 0 ]; then
do_chrt --idle 0
cleanup_output
+ ts_finalize_subtest
fi
-ts_finalize_subtest
ts_init_subtest "deadline"
do_chrt --deadline --sched-period 13000 --sched-deadline 12000 0
do_chrt --deadline --sched-period 13000 --sched-deadline 12000 --sched-runtime 10000 0
cleanup_output
+ ts_finalize_subtest
fi
-ts_finalize_subtest
ts_finalize