tests: add empty_environment test, fix whitespace in list_file_types

Verify that ag works with no environment variables set.
This commit is contained in:
Allen Wild 2020-06-22 11:13:11 -04:00
parent 1dae7a25a3
commit 0da483f0a5
2 changed files with 11 additions and 2 deletions

View file

@ -0,0 +1,9 @@
Setup:
$ . $TESTDIR/setup.sh
$ printf "hello world\n" >test.txt
Verify ag runs with an empty environment:
$ env -i $TESTDIR/../ag --noaffinity --nocolor --workers=1 --parallel hello
test.txt:1:hello world

View file

@ -29,7 +29,7 @@ Language types are output:
--batch
.bat .cmd
--bazel
.bazel
@ -419,4 +419,4 @@ Language types are output:
--zephir
.zep