[test] Now git diff in basic regression tests should capture the changes on golden outputs

This commit is contained in:
tangxifan 2022-09-20 13:36:31 -07:00
parent 30988d7072
commit bdcdc7d294
1 changed files with 2 additions and 2 deletions

View File

@ -205,8 +205,8 @@ cd ${OPENFPGA_PATH}
pwd
git config --global --add safe.directory ${OPENFPGA_PATH}
git log
git diff --name-status -- ':${OPENFPGA_PATH}/openfpga_flow/tasks/basic_tests/no_time_stamp/*/golden_outputs_no_time_stamp/**'
if git diff --name-status --exit-code -- ':${OPENFPGA_PATH}/openfpga_flow/tasks/basic_tests/no_time_stamp/*/golden_outputs_no_time_stamp/**'; then
git diff --name-status -- ":${OPENFPGA_PATH}/openfpga_flow/tasks/basic_tests/no_time_stamp/*/golden_outputs_no_time_stamp/**"
if git diff --name-status --exit-code -- ":${OPENFPGA_PATH}/openfpga_flow/tasks/basic_tests/no_time_stamp/*/golden_outputs_no_time_stamp/**"; then
echo -e "Golden netlist remain unchanged"
else
echo -e "Detect changes in golden netlists"; exit 1;