Skip to content

Commit 1192f48

Browse files
committed
Clean up
1 parent 47ca775 commit 1192f48

1 file changed

Lines changed: 12 additions & 13 deletions

File tree

‎test.bash‎

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,24 @@
1-
#!/bin/bash -ex
1+
#!/bin/bash
22
#
33
# Test command-line usage.
44

5-
trap "echo -e '\x1b[01;31mFailed\x1b[0m'" ERR
5+
set -ex
66

7-
#export ARGS="--remote-host localhost --remote-port 8080"
8-
export ARGS=""
7+
trap "echo -e '\x1b[01;31mFailed\x1b[0m'" ERR
98

10-
echo 'This is okay.' | language-check ${ARGS} -
11-
! echo 'This is noot okay.' | language-check ${ARGS} -
9+
echo 'This is okay.' | language-check -
10+
! echo 'This is noot okay.' | language-check -
1211

13-
echo 'This is okay.' | python -m language_check ${ARGS} -
14-
! echo 'This is noot okay.' | python -m language_check ${ARGS} -
12+
echo 'This is okay.' | python -m language_check -
13+
! echo 'This is noot okay.' | python -m language_check -
1514

16-
echo 'These are “smart” quotes.' | python -m language_check ${ARGS} -
17-
! echo 'These are "dumb" quotes.' | python -m language_check ${ARGS} -
18-
! echo 'These are "dumb" quotes.' | python -m language_check ${ARGS} --enabled-only \
15+
echo 'These are “smart” quotes.' | python -m language_check -
16+
! echo 'These are "dumb" quotes.' | python -m language_check -
17+
! echo 'These are "dumb" quotes.' | python -m language_check --enabled-only \
1918
--enable=EN_QUOTES -
20-
echo 'These are "dumb" quotes.' | python -m language_check ${ARGS} --enabled-only \
19+
echo 'These are "dumb" quotes.' | python -m language_check --enabled-only \
2120
--enable=EN_UNPAIRED_BRACKETS -
2221

23-
echo '# These are "dumb".' | python -m language_check ${ARGS} --ignore-lines='^#' -
22+
echo '# These are "dumb".' | python -m language_check --ignore-lines='^#' -
2423

2524
echo -e '\x1b[01;32mOkay\x1b[0m'

0 commit comments

Comments
 (0)