From 1eda0dafd539b6a259fe1ad4609419c8f04c49c7 Mon Sep 17 00:00:00 2001
From: Catalin Mititiuc
Date: Tue, 30 Apr 2024 20:34:04 -0700
Subject: Fix test; add some scripts
---
run-test | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
(limited to 'run-test')
diff --git a/run-test b/run-test
index 1c162ba..0430cf7 100755
--- a/run-test
+++ b/run-test
@@ -1,11 +1,5 @@
#!/usr/bin/env bash
NPM_COMMAND="npm run test:integ"
-CONTAINER_NAME=$(docker container ls --all --filter=ancestor=btroops --format "{{.Names}}")
-if [[ -z "${CONTAINER_NAME}" ]]
-then
- docker run --rm -it -v $PWD:/usr/src/app btroops $NPM_COMMAND
-else
- docker exec -it $CONTAINER_NAME $NPM_COMMAND
-fi
+docker run --rm --init -it -v $PWD:/usr/src/app btroops $NPM_COMMAND
--
cgit v1.2.3