Skip to content

Commit 25db42e

Browse files
committed
lint_tool_test: If there is an issue with a patch: print it out.
1 parent ec69cae commit 25db42e

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

verilog/tools/lint/lint_tool_test.sh

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -560,6 +560,10 @@ status="$?"
560560
echo "Expected exit code 0 from 'patch' tool, but got $status"
561561
echo "--- 'patch' output ---"
562562
echo "$patch_out"
563+
echo "Patch was"
564+
echo "------------------"
565+
cat "${PATCH_FILE}"
566+
echo "------------------"
563567
exit 1
564568
}
565569

@@ -956,32 +960,32 @@ echo "=== Test --autofix=generate-waiver --autofix_output_file: run linter on a
956960
TEST_FILE="${TEST_TMPDIR}/generate-waiver.sv"
957961
cat >"${TEST_FILE}" <<EOF
958962
module m;
959-
wire x = y;
963+
wire x = y;
960964
always @* x=y;
961965
always @* x=y;
962966
endmodule
963967
964968
965969
module m;
966970
967-
begin
968-
wire x=y;
971+
begin
972+
wire x=y;
969973
end
970-
begin
971-
wire s=y;
974+
begin
975+
wire s=y;
972976
end
973977
endmodule
974978
975979
976980
module m;
977-
wire x = y;
981+
wire x = y;
978982
always @* x=y;
979983
always @* x=y;
980984
endmodule
981985
EOF
982986

983987

984-
"$lint_tool" "${TEST_FILE}" --autofix=generate-waiver --autofix_output_file "${MY_OUTPUT_FILE}" &> /dev/null
988+
"$lint_tool" "${TEST_FILE}" --autofix=generate-waiver --autofix_output_file "${MY_OUTPUT_FILE}" &> /dev/null
985989
status="$?"
986990
[[ $status == 1 ]] || {
987991
echo "Expected exit code 1, but got $status"

0 commit comments

Comments
 (0)