[test] debugging git-diff

This commit is contained in:
tangxifan 2022-09-20 15:31:39 -07:00
parent 3f8106f12e
commit da157ed5de
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_flow/tasks/basic_tests/no_time_stamp/*/golden_outputs_no_time_stamp/**'
if git diff --name-status --exit-code -- ':/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;