forked from rarias/bscpkgs
garlicd: send logs to the builder
This commit is contained in:
@@ -26,8 +26,17 @@ in
|
||||
|
||||
echo ${trebuchet} >> /garlic/run
|
||||
echo "resultTree: waiting for experiment results..."
|
||||
stdbuf -o 0 tail -f /garlic/st &
|
||||
stpid=$!
|
||||
res=$(cat /garlic/completed)
|
||||
|
||||
kill -TERM $stpid
|
||||
|
||||
if [ "$res" == "ERROR" ]; then
|
||||
echo "resultTree: the experiment failed"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ "$res" != "${trebuchet}" ]; then
|
||||
echo "resultTree: unknown trebuchet received"
|
||||
exit 1
|
||||
|
||||
Reference in New Issue
Block a user