"arvbox run test" is --interactive if not run with any other arguments.
authorPeter Amstutz <pamstutz@veritasgenetics.com>
Mon, 17 Jun 2019 14:53:56 +0000 (10:53 -0400)
committerPeter Amstutz <pamstutz@veritasgenetics.com>
Mon, 17 Jun 2019 14:53:56 +0000 (10:53 -0400)
no issue #

Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <pamstutz@veritasgenetics.com>

tools/arvbox/bin/arvbox

index 3e829522af24de67e134166e8dc227b2ba7b9b61..efcad7f44c976e5118027e87e4e4d8d0ac100f5d 100755 (executable)
@@ -275,6 +275,11 @@ run() {
                        /var/lib/arvbox/service/api/run-service --only-setup
             fi
 
+           interactive=""
+           if [[ -z "$@" ]] ; then
+               interactive=--interactive
+           fi
+
             docker exec -ti \
                    -e LINES=$(tput lines) \
                    -e COLUMNS=$(tput cols) \
@@ -285,6 +290,7 @@ run() {
                    /usr/local/lib/arvbox/runsu.sh \
                    /usr/src/arvados/build/run-tests.sh \
                    --temp /var/lib/arvados/test \
+                  $interactive \
                    "$@"
         elif [[ "$CONFIG" = devenv ]] ; then
            if [[ $need_setup = 1 ]] ; then