From 09a0ed250db782a76f36f941e406c5c96ae5a48d Mon Sep 17 00:00:00 2001 From: Omar Brikaa Date: Tue, 22 Feb 2022 17:37:14 +0200 Subject: [PATCH] Use volume binary in test-dev, error exit if failed to delete volume --- piston | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/piston b/piston index 84001d6..a917603 100755 --- a/piston +++ b/piston @@ -61,7 +61,7 @@ case "$SUBCOMMAND" in build-dev) echo "Removing the Nix volume if it exists" - docker volume rm -f $DEV_VOLUME_NAME + docker volume rm -f $DEV_VOLUME_NAME || exit 1 echo "Building the base docker image" build_base dev echo "Installing the required node modules" @@ -118,7 +118,7 @@ case "$SUBCOMMAND" in -v $DEV_VOLUME_NAME:/nix \ --name piston_test_runner \ "$IMAGE_NAME_DEV:$IMAGE_TAG" \ - piston-test $1 + /piston/src/api/src/bin/test.js $1 ;; *)