File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -96,9 +96,20 @@ wpt-summary:
9696 @printf " \e[36mBuilding wpt...\e[0m\n"
9797 @$(ZIG ) build wpt -- --summary $(filter-out $@ ,$(MAKECMDGOALS ) ) || (printf " \e[33mBuild ERROR\e[0m\n" ; exit 1; )
9898
99- # # Test
99+ # # Test - `awk` is used to filter out the huge compile command on build
100100test :
101- @TEST_FILTER=' ${F}' $(ZIG ) build test -freference-trace --summary all
101+ @TEST_FILTER=' ${F}' $(ZIG ) build test -freference-trace --summary all 2>&1 | awk ' \
102+ /^error: the following command failed/ {\
103+ print " error: compilation command failed (command output suppressed for brevity)" ; \
104+ while (getline > 0) {\
105+ if (/^error:/ || /^Build Summary:/ || /^build\. zig:/) {\
106+ print; \
107+ break ; \
108+ }\
109+ }\
110+ next; \
111+ }\
112+ { print; }'
102113
103114# # Run demo/runner end to end tests
104115end2end :
You can’t perform that action at this time.
0 commit comments