Skip to content

Commit 5d417a7

Browse files
committed
melting-pot: skip previously successful builds
This saves a lot of time when running the melting pot repeatedly.
1 parent f084780 commit 5d417a7

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

melting-pot.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -613,6 +613,11 @@ generateScript() {
613613
done
614614
echo >> melt.sh
615615
echo 'do' >> melt.sh
616+
echo ' # If the build passed previously, don'\''t repeat it.' >> melt.sh
617+
echo ' test -f "$f/build.log" &&' >> melt.sh
618+
echo ' tail -n6 "$f/build.log" | grep -qF '\''[INFO] BUILD SUCCESS'\'' &&' >> melt.sh
619+
echo ' echo "[SUCCESS] $f (prior)" && continue' >> melt.sh
620+
echo >> melt.sh
616621
echo ' cd "$f"' >> melt.sh
617622
echo ' sh "$dir/build.sh" >build.log 2>&1 &&' >> melt.sh
618623
echo ' echo "[SUCCESS] $f" || {' >> melt.sh

0 commit comments

Comments
 (0)