Skip to content

Commit 322f53d

Browse files
committed
libtest: Make sed arguments compatible with apple
1 parent 470c059 commit 322f53d

File tree

1 file changed

+2
-2
lines changed
  • src/test/run-make-fulldeps/libtest-json

1 file changed

+2
-2
lines changed

src/test/run-make-fulldeps/libtest-json/Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ all:
1414
cat $(OUTPUT_FILE_STDOUT_SUCCESS) | "$(PYTHON)" validate_json.py
1515

1616
# Normalize the actual output and compare to expected output file
17-
cat $(OUTPUT_FILE_DEFAULT) | sed -r 's/\"exec_time\": [0-9]+(\.[0-9]+)?/\"exec_time\": \$$TIME/' | diff output-default.json -
18-
cat $(OUTPUT_FILE_STDOUT_SUCCESS) | sed -r 's/\"exec_time\": [0-9]+(\.[0-9]+)?/\"exec_time\": \$$TIME/' | diff output-stdout-success.json -
17+
cat $(OUTPUT_FILE_DEFAULT) | sed 's/"exec_time": [0-9.]*/"exec_time": $$TIME/' | diff output-default.json -
18+
cat $(OUTPUT_FILE_STDOUT_SUCCESS) | sed 's/"exec_time": [0-9.]*/"exec_time": $$TIME/' | diff output-stdout-success.json -

0 commit comments

Comments
 (0)