Skip to content

Commit 09a0ed2

Browse files
committed
Use volume binary in test-dev, error exit if failed to delete volume
1 parent 4578a9d commit 09a0ed2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

piston

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ case "$SUBCOMMAND" in
6161

6262
build-dev)
6363
echo "Removing the Nix volume if it exists"
64-
docker volume rm -f $DEV_VOLUME_NAME
64+
docker volume rm -f $DEV_VOLUME_NAME || exit 1
6565
echo "Building the base docker image"
6666
build_base dev
6767
echo "Installing the required node modules"
@@ -118,7 +118,7 @@ case "$SUBCOMMAND" in
118118
-v $DEV_VOLUME_NAME:/nix \
119119
--name piston_test_runner \
120120
"$IMAGE_NAME_DEV:$IMAGE_TAG" \
121-
piston-test $1
121+
/piston/src/api/src/bin/test.js $1
122122
;;
123123

124124
*)

0 commit comments

Comments
 (0)