commit: 7a409c03109130434ba21874038fc3242f2dc0f9
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Mon Aug 11 22:45:11 2014 +0000
Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Mon Aug 11 22:45:11 2014 +0000
URL:
http://sources.gentoo.org/gitweb/?p=proj/releng.git;a=commit;h=7a409c03
tools-musl/run.sh: parallelize musl run
---
tools-musl/run.sh | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/tools-musl/run.sh b/tools-musl/run.sh
index 84609aa..7f82a8e 100755
--- a/tools-musl/run.sh
+++ b/tools-musl/run.sh
@@ -43,19 +43,19 @@ main() {
catalyst -s current | tee -a zzz.log >snapshot.log 2>snapshot.err
for arch in amd64 i686; do
- for flavor in vanilla hardened; do
+ for flavor in hardened vanilla; do
prepare_confs ${arch} ${flavor}
done
done
-
+
+ # The parallelization `( do_stages ... ) &` doesn't work here
+ # if catalyst is using snapcache, bug #519656
for arch in amd64 i686; do
- for flavor in vanilla hardened; do
- do_stages ${arch} ${flavor}
- ret=$?
- if [[ $? == 1 ]]; then
- echo "FAILURE at ${arch} ${flavor} " | tee zzz.log
- return 1
- fi
+ for flavor in hardened vanilla; do
+ (
+ do_stages ${arch} ${flavor}
+ [[ $? == 1 ]] && echo "FAILURE at ${arch} ${flavor} " | tee zzz.log
+ ) &
done
done
}