Skip to content

Commit 791d12a

Browse files
authored
Merge pull request #2822 from vvbandeira/at-ci-report-failures
ci: make sure AT CI catches errors
2 parents 664eee8 + 4c6a318 commit 791d12a

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

flow/test/test_autotuner.sh

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
#!/usr/bin/env bash
2+
3+
set -eoux pipefail
4+
25
DESIGN_NAME=${1:-gcd}
36
PLATFORM=${2:-nangate45}
7+
# unittest does not allow dashes on test names
8+
PLATFORM_WITHOUT_DASHES="${PLATFORM//-/}"
49

510
# run the commands in ORFS root dir
611
echo "[INFO FLW-0029] Installing dependencies in virtual environment."
@@ -9,15 +14,15 @@ cd ../
914
. ./tools/AutoTuner/setup.sh
1015

1116
echo "Running Autotuner smoke tune test"
12-
python3 -m unittest tools.AutoTuner.test.smoke_test_tune.${PLATFORM}TuneSmokeTest.test_tune
17+
python3 -m unittest tools.AutoTuner.test.smoke_test_tune.${PLATFORM_WITHOUT_DASHES}TuneSmokeTest.test_tune
1318

1419
echo "Running Autotuner smoke sweep test"
15-
python3 -m unittest tools.AutoTuner.test.smoke_test_sweep.${PLATFORM}SweepSmokeTest.test_sweep
20+
python3 -m unittest tools.AutoTuner.test.smoke_test_sweep.${PLATFORM_WITHOUT_DASHES}SweepSmokeTest.test_sweep
1621

1722
echo "Running Autotuner smoke tests for --sample and --iteration."
18-
python3 -m unittest tools.AutoTuner.test.smoke_test_sample_iteration.${PLATFORM}SampleIterationSmokeTest.test_sample_iteration
23+
python3 -m unittest tools.AutoTuner.test.smoke_test_sample_iteration.${PLATFORM_WITHOUT_DASHES}SampleIterationSmokeTest.test_sample_iteration
1924

20-
if [ "$PLATFORM" == "asap7" ] && [ "$DESIGN_NAME" == "gcd" ]; then
25+
if [ "$PLATFORM_WITHOUT_DASHES" == "asap7" ] && [ "$DESIGN_NAME" == "gcd" ]; then
2126
echo "Running Autotuner ref file test (only once)"
2227
python3 -m unittest tools.AutoTuner.test.ref_file_check.RefFileCheck.test_files
2328

0 commit comments

Comments
 (0)