Skip to contentSkip to conversation

target_cmd_build: Delete build-ok-stamp before starting

PATCH In review Ian Jackson 2 participants 2 messages Apr 21, 2015 – Apr 22, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 target_cmd_build: Delete build-ok-stamp before starting

Many of the callers of target_cmd_build use a build-ok-stamp idiom to detect failed builds. This idiom does not work if the stamp file exists already, so delete it.

In the future we may move more of the test build-ok-stamp, echo ok, into TestSupport, but this will do for now.

---
 Osstest/TestSupport.pm |    1 +
 1 file changed, 1 insertion(+)
Osstest/TestSupport.pm +1 -0
index b50ad0a..3ff70a5 100644
@@ -593,6 +593,7 @@ END
 END
         exec </dev/null
         cd $builddir
+        rm -f build-ok-stamp
 END
 }
 
Signature · 1 line
1.7.10.4
Acked-by on v1 1/1
#1 lore raw
Quoted 8 lines · Ian Jackson

Many of the callers of target_cmd_build use a build-ok-stamp idiom to detect failed builds. This idiom does not work if the stamp file exists already, so delete it.

In the future we may move more of the test build-ok-stamp, echo ok, into TestSupport, but this will do for now.