Skip to content

Commit 4c6a318

Browse files
committed
ci: fix platforms with dashes on their names
Signed-off-by: Vitor Bandeira <[email protected]>
1 parent c6fcaaa commit 4c6a318

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

flow/test/test_autotuner.sh

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ set -eoux pipefail
44

55
DESIGN_NAME=${1:-gcd}
66
PLATFORM=${2:-nangate45}
7+
# unittest does not allow dashes on test names
8+
PLATFORM_WITHOUT_DASHES="${PLATFORM//-/}"
79

810
# run the commands in ORFS root dir
911
echo "[INFO FLW-0029] Installing dependencies in virtual environment."
@@ -12,15 +14,15 @@ cd ../
1214
. ./tools/AutoTuner/setup.sh
1315

1416
echo "Running Autotuner smoke tune test"
15-
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
1618

1719
echo "Running Autotuner smoke sweep test"
18-
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
1921

2022
echo "Running Autotuner smoke tests for --sample and --iteration."
21-
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
2224

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

0 commit comments

Comments
 (0)