File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -71,9 +71,7 @@ execute_process(
71
71
)
72
72
73
73
if (TEST_RESULT )
74
- file (READ ${OUT_FILE} OUTPUT )
75
- file (READ ${MATCH_FILE} MATCH_STRING )
76
- message (FATAL_ERROR "Failed: The output of ${OUT_FILE} :\n ${OUTPUT} \n does not match ${MATCH_FILE} :\n ${MATCH_STRING} (${TEST_RESULT} )" )
74
+ message (FATAL_ERROR "Failed (${TEST_RESULT} ): The output of ${OUT_FILE} does not match ${MATCH_FILE} " )
77
75
elseif ()
78
76
message ("Passed: The output ${OUT_FILE} matches ${MATCH_FILE} " )
79
77
endif ()
Original file line number Diff line number Diff line change 60
60
print ("Line " + str (i + 1 ) + " does not match" )
61
61
print ("is: " + input_line )
62
62
print ("expected: " + match_line .strip ())
63
+ print ("--- Input Lines " + "-" * 64 )
64
+ print ("" .join (input_lines ).strip ())
65
+ print ("--- Match Lines " + "-" * 64 )
66
+ print ("" .join (match_lines ).strip ())
67
+ print ("-" * 80 )
63
68
sys .exit (1 )
64
69
else :
65
70
if (input_idx == len (input_lines ) - 1 ):
You can’t perform that action at this time.
0 commit comments