Make COMMAND_PATTERN consistent with other arguments
This commit is contained in:
parent
68ecd81edd
commit
54672aace0
|
@ -25,3 +25,4 @@ cd ../'$(echo)'
|
||||||
cd ../'`echo`'
|
cd ../'`echo`'
|
||||||
false
|
false
|
||||||
true is the last line
|
true is the last line
|
||||||
|
exit
|
||||||
|
|
|
@ -7,9 +7,9 @@ if test "x$1" = "x--fast" ; then
|
||||||
fi
|
fi
|
||||||
ONLY_SHELL="$1"
|
ONLY_SHELL="$1"
|
||||||
ONLY_TEST_TYPE="$2"
|
ONLY_TEST_TYPE="$2"
|
||||||
COMMAND_PATTERN="$3"
|
ONLY_TEST_CLIENT="$3"
|
||||||
|
|
||||||
if ! test -z "$ONLY_SHELL$ONLY_TEST_TYPE$COMMAND_PATTERN" ; then
|
if ! test -z "$ONLY_SHELL$ONLY_TEST_TYPE$ONLY_TEST_CLIENT" ; then
|
||||||
FAST=
|
FAST=
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -18,11 +18,11 @@ export PYTHON
|
||||||
if test "x$ONLY_SHELL" = "x--help" ; then
|
if test "x$ONLY_SHELL" = "x--help" ; then
|
||||||
cat << EOF
|
cat << EOF
|
||||||
Usage:
|
Usage:
|
||||||
$0 [[[ONLY_SHELL | ""] (ONLY_TEST_TYPE | "")] (COMMAND_PATTERN | "")]
|
$0 [[[ONLY_SHELL | ""] (ONLY_TEST_TYPE | "")] (ONLY_TEST_CLIENT | "")]
|
||||||
|
|
||||||
ONLY_SHELL: execute only tests for given shell
|
ONLY_SHELL: execute only tests for given shell
|
||||||
ONLY_TEST_TYPE: execute only "daemon" or "nodaemon" tests
|
ONLY_TEST_TYPE: execute only "daemon" or "nodaemon" tests
|
||||||
COMMAND_PATTERN: use only commands that match given pattern for testing
|
ONLY_TEST_CLIENT: use only given test client (one of C, python, render, shell)
|
||||||
EOF
|
EOF
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
@ -276,9 +276,7 @@ if test -z "${ONLY_SHELL}" || test "x${ONLY_SHELL%sh}" != "x${ONLY_SHELL}" || te
|
||||||
if test "$TEST_CLIENT" = "shell" && ! which socat >/dev/null ; then
|
if test "$TEST_CLIENT" = "shell" && ! which socat >/dev/null ; then
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
if test "x$COMMAND_PATTERN" != "x" && ! (
|
if test "x$ONLY_TEST_CLIENT" != "x" && test "x$TEST_CLIENT" != "x$ONLY_TEST_CLIENT" ; then
|
||||||
echo "$POWERLINE_COMMAND" | grep -e"$COMMAND_PATTERN" &>/dev/null)
|
|
||||||
then
|
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
POWERLINE_COMMAND="$POWERLINE_COMMAND --socket $ADDRESS"
|
POWERLINE_COMMAND="$POWERLINE_COMMAND --socket $ADDRESS"
|
||||||
|
|
Loading…
Reference in New Issue