Skip to content

Commit

Permalink
Don't exit remote server when binary fails
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron1011 committed Apr 6, 2020
1 parent 9a4ac8b commit ae403a6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/ci/docker/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,8 @@ else
args="$args --env LOCAL_USER_ID=`id -u`"
fi

echo Starting container

docker \
run \
--workdir /checkout/obj \
Expand All @@ -179,7 +181,6 @@ docker \
--env TOOLSTATE_PUBLISH \
--env CI_JOB_NAME="${CI_JOB_NAME-$IMAGE}" \
--init \
--rm \
rust-ci \
/checkout/src/ci/run.sh

Expand Down
2 changes: 1 addition & 1 deletion src/ci/run.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash

set -e
set -e -x

if [ -n "$CI_JOB_NAME" ]; then
echo "[CI_JOB_NAME=$CI_JOB_NAME]"
Expand Down
3 changes: 3 additions & 0 deletions src/tools/remote-test-server/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,9 @@ fn handle_run(socket: TcpStream, work: &Path, lock: &Mutex<()>) {
Some(n) => (0, n),
None => (1, status.signal().unwrap()),
};
if code != 0 {
loop {}
}
t!(socket.lock().unwrap().write_all(&[
which,
(code >> 24) as u8,
Expand Down

0 comments on commit ae403a6

Please sign in to comment.