File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,8 @@ set -eoux pipefail
44
55DESIGN_NAME=${1:- gcd}
66PLATFORM=${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
911echo " [INFO FLW-0029] Installing dependencies in virtual environment."
@@ -12,15 +14,15 @@ cd ../
1214. ./tools/AutoTuner/setup.sh
1315
1416echo " 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
1719echo " 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
2022echo " 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
You can’t perform that action at this time.
0 commit comments