diff --git a/nemu/Makefile b/nemu/Makefile index 928f973..d8b64d2 100644 --- a/nemu/Makefile +++ b/nemu/Makefile @@ -87,7 +87,7 @@ integration-tests: $(IMAGES) @printf "$(COLOR_BLUE)RESULT:$(COLOR_NONE)\n\tALL: %s\n\tFAILED: %s\n" $(words $(IMAGES)) $(shell wc -l $(RESULT) | cut -f1 -d' ') @printf "$(COLOR_RED)FAILED:$(COLOR_NONE)\n" @cat $(RESULT) - @test ! -s $(RESULT); \ + @test -s $(RESULT); \ r=$$?; \ $(RM) $(RESULT); \ test $$r -eq 0