Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAles Tamchyna <a.tamchyna@gmail.com>2011-09-08 18:02:05 +0400
committerAles Tamchyna <a.tamchyna@gmail.com>2011-09-08 18:02:05 +0400
commit37df1653b6575bbb067fac7c55a53711d741ab0e (patch)
treeea5c4e6269b92088d37d488c78058e808151ced9 /cruise-control
parent8aa4958af4fbcc344de8219dd1aa539b972e0694 (diff)
only stop when an OK commit is found for all watched branches
Diffstat (limited to 'cruise-control')
-rwxr-xr-xcruise-control/test_all_new_commits.sh27
1 files changed, 13 insertions, 14 deletions
diff --git a/cruise-control/test_all_new_commits.sh b/cruise-control/test_all_new_commits.sh
index 7f7cdc10c..ec8c29cad 100755
--- a/cruise-control/test_all_new_commits.sh
+++ b/cruise-control/test_all_new_commits.sh
@@ -145,22 +145,21 @@ function run_single_test () {
return 1;
fi
}
-
for i in $MCC_SCAN_BRANCHES; do
- git rev-list $i > $(echo -n $i | sed 's/\//_/g').revlist
+ git rev-list $i > "$LOGDIR/logs/$configname/$(echo -n $i | sed 's/\//_/g').revlist"
done
#### Main loop over all commits
-( cd "$WORKDIR" && git rev-list $MCC_SCAN_BRANCHES ) \
-| while read commit; do
- test_ok="$LOGDIR/logs/$configname/$commit.OK"
- if [ ! -e "$test_ok" ]; then
- run_single_test $commit && warn "Commit $commit test ok, stopping" && break
- warn "Commit $commit test failed, continuing"
- else
- warn "Reached a successfully tested commit ($commit), stopping"
- break
- fi
+for i in $MCC_SCAN_BRANCHES; do
+ git rev-list $i \
+ | while read commit; do
+ test_ok="$LOGDIR/logs/$configname/$commit.OK"
+ if [ ! -e "$test_ok" ]; then
+ run_single_test $commit && warn "Commit $commit test ok, stopping" && break
+ warn "Commit $commit test failed, continuing"
+ else
+ warn "Reached a successfully tested commit ($commit), stopping"
+ break
+ fi
+ done
done
-
-