[PATCH] aiaiai-test-patchset: optimize disk space

Robert Jarzmik robert.jarzmik at free.fr
Thu Nov 6 11:46:50 PST 2014


When compiling multiple defconfigs, remove the build tree between
each compilation to spare disk space.

In this way the build trees don't accumulate on the disk while
testing the same patchset, and the patchset scales with the
number of defconfigs, which is not limiting the build anymore.

Signed-off-by: Robert Jarzmik <robert.jarzmik at free.fr>
---
 aiaiai-test-patchset | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/aiaiai-test-patchset b/aiaiai-test-patchset
index b3ab3f5..952c625 100755
--- a/aiaiai-test-patchset
+++ b/aiaiai-test-patchset
@@ -239,7 +239,9 @@ test_configuration()
 	verbose "Done with patched kernel"
 
 	aiaiai-diff-log $verbose $preserve "$tmpdir/diff-for-diff-log" "$log1.stderr.log" \
-		-w "$tmpdir" "$log2.stderr.log" > "$tmpdir/$config.stderr.diff"
+			-w "$tmpdir" "$log2.stderr.log" > "$tmpdir/$config.stderr.diff"
+	[ -d "$obj1" ] && (verbose "Removing $obj1"; rm -rf -- "$obj1" >&2)
+	[ -d "$obj2" ] && (verbose "Removing $obj2"; rm -rf -- "$obj2" >&2)
 }
 
 tmpdir=
-- 
2.1.0




More information about the aiaiai mailing list