From 67fb1f56b35eb3b80e247dd5f71d5ed3226028fb Mon Sep 17 00:00:00 2001 From: Laurent Morichetti Date: Fri, 20 May 2022 17:02:25 -0700 Subject: [PATCH] Enable tests validation in the CI environment Change-Id: Ied3d203db35083f0045fae052d82ec5e1a867581 [ROCm/roctracer commit: fd1469a573098f8f88fa05a2319a22c7c8744bd8] --- projects/roctracer/test/run.sh | 21 ++++++--------------- 1 file changed, 6 insertions(+), 15 deletions(-) diff --git a/projects/roctracer/test/run.sh b/projects/roctracer/test/run.sh index 5878650ebe..d76cd605dc 100755 --- a/projects/roctracer/test/run.sh +++ b/projects/roctracer/test/run.sh @@ -27,11 +27,6 @@ BIN_NAME=`basename $0` BIN_DIR=`dirname $0` cd $BIN_DIR -IS_CI=0 -if [ "$BIN_NAME" = "run_ci.sh" ] ; then - IS_CI=1 -fi - # enable tools load failure reporting export HSA_TOOLS_REPORT_LOAD_FAILURE=1 # paths to ROC profiler and other libraries @@ -91,16 +86,12 @@ eval_test() { echo "--- stderr ---" cat test/out/$test_name.err fi - if [ $IS_CI = 1 ] ; then - is_failed=0; - else - if [ $is_failed = 0 ] ; then - python3 ./test/check_trace.py -in $test_name -ck $check_trace_flag - is_failed=$? - if [ $is_failed != 0 ] ; then - echo "Trace checker error:" - python3 ./test/check_trace.py -v -in $test_name -ck $check_trace_flag - fi + if [ $is_failed = 0 ] ; then + python3 ./test/check_trace.py -in $test_name -ck $check_trace_flag + is_failed=$? + if [ $is_failed != 0 ] ; then + echo "Trace checker error:" + python3 ./test/check_trace.py -v -in $test_name -ck $check_trace_flag fi fi if [ $is_failed = 0 ] ; then