X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=tests%2Fregression%2Fust%2Fpython-logging%2Ftest_python_logging.in;h=42c30572a5b3d64fb1d5dd236cda2d1b6363a140;hb=16709ab9bc4f29b83631ed6d44714a877fd903e7;hp=90abc116362d7ff7e57a4610c97a2825fe74bc13;hpb=fb0093bf2309d1bea02828d7efb154458e0378a6;p=lttng-tools.git diff --git a/tests/regression/ust/python-logging/test_python_logging.in b/tests/regression/ust/python-logging/test_python_logging.in index 90abc1163..42c30572a 100755 --- a/tests/regression/ust/python-logging/test_python_logging.in +++ b/tests/regression/ust/python-logging/test_python_logging.in @@ -46,8 +46,17 @@ function run_app local python=$1 local debug_tp=$2 local fire_second_tp=$3 + local opt="" - $python $TESTAPP_PATH/$TESTAPP_BIN $NR_ITER $NR_SEC_WAIT $debug_tp $fire_second_tp + if [[ -n "$debug_tp" ]] && [ "$debug_tp" -eq "1" ]; then + opt="${opt} -d" + fi + + if [[ -n "$fire_second_tp" ]] && [ "$fire_second_tp" -eq "1" ]; then + opt="${opt} -e" + fi + + $python $TESTAPP_PATH/$TESTAPP_BIN -n $NR_ITER -s $NR_SEC_WAIT $opt } function run_app_background