X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=tests%2Fregression%2Fust%2Fpython-logging%2Ftest_python_logging.in;h=42c30572a5b3d64fb1d5dd236cda2d1b6363a140;hp=90abc116362d7ff7e57a4610c97a2825fe74bc13;hb=74f2abd52f6f3d2f10df28631969797d091ed7de;hpb=13f7f68ab651ed08b9eb07f051c257b468162701 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