From 6fd66490f2cc23cb0d95a52486b72b7ec55d81ba Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Wed, 14 Feb 2018 12:34:52 +0200 Subject: Change: allow user to only run yarns with ./check --- check | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'check') diff --git a/check b/check index 641eefe..9519fac 100755 --- a/check +++ b/check @@ -32,16 +32,24 @@ title() title Remote or local yarns? remote=no +unit=yes if [ "$#" -gt 0 ] then case "$1" in https://*) remote=yes + unit=no remote_url="$1" shift 1 ;; + yarns) + remote=no + unit=no + shift 1 + ;; local) remote=no + unit=yes shift 1 ;; *) @@ -50,15 +58,9 @@ then ;; esac fi -if [ "$remote" = no ] -then - echo "Run yarns against a locally managed instance" -else - echo "Run yarns against remote instance $remote_url" -fi -if [ "$remote" = no ] +if [ "$unit" = yes ] then title Unit tests python3 -m CoverageTestRunner --ignore-missing-from=without-tests ick2 -- cgit v1.2.1