From 77c8d10c957a37c44e93f5f89177e9cecac0ec65 Mon Sep 17 00:00:00 2001
From: Lukas Bulwahn <lukas.bulwahn@oss.bmw-carit.de>
Date: Thu, 11 Jul 2013 12:19:14 +0200
Subject: [PATCH] test-all.sh: always build with a fresh environment

---
 scripts/test-all.sh | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/scripts/test-all.sh b/scripts/test-all.sh
index 06f32d2..9b9a27f 100755
--- a/scripts/test-all.sh
+++ b/scripts/test-all.sh
@@ -135,6 +135,9 @@ bake_all () {
     while [ $i -lt $array_length ]; do
 	activity="$txt_file_pkg_checking_kw $((i+1))/$array_length: ${array[$i]}"
 	echo $activity
+        # create clean bitbake environment
+	rm bitbake.lock cache/ sstate-cache/ tmp-eglibc/ -rf
+        bitbake
 	if [ "$arg" = "txt" ]; then
 	    # Try to bake every recipe. Store results in a report file. Just give $txt_file_pkg_ok_kw for working recipes, print more information on errors.
 	    echo $activity | tee -a "$report_file_raw" >> "$report_file_txt"
-- 
GitLab