diff options
author | David Kalnischkies <david@kalnischkies.de> | 2015-12-15 17:20:26 +0100 |
---|---|---|
committer | David Kalnischkies <david@kalnischkies.de> | 2015-12-19 23:04:34 +0100 |
commit | 3abb6a6a1e485b3bc899b64b0a1b7dc2db25a9c2 (patch) | |
tree | 9be704b4ba97242990c1380f53c6b44ecce2f6af /test/integration/test-apt-cli-search | |
parent | 85a67355c0340596630a47f85507d61c68dcbd0e (diff) |
tests: support spaces in path and TMPDIR
This doesn't allow all tests to run cleanly, but it at least allows to
write tests which could run successfully in such environments.
Git-Dch: Ignore
Diffstat (limited to 'test/integration/test-apt-cli-search')
-rwxr-xr-x | test/integration/test-apt-cli-search | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/test/integration/test-apt-cli-search b/test/integration/test-apt-cli-search index e86661dcb..6457ece6c 100755 --- a/test/integration/test-apt-cli-search +++ b/test/integration/test-apt-cli-search @@ -1,18 +1,12 @@ #!/bin/sh set -e -TESTDIR=$(readlink -f $(dirname $0)) -. $TESTDIR/framework +TESTDIR="$(readlink -f "$(dirname "$0")")" +. "$TESTDIR/framework" setupenvironment configarchitecture "i386" -if [ ! -x ${BUILDDIRECTORY}/apt ]; then - msgmsg "No ${BUILDDIRECTORY}/apt" - msgskip - exit 0 -fi - DESCR='Some description that has a unusual word xxyyzz and aabbcc and a UPPERCASE' DESCR2='Some other description with the unusual aabbcc only' insertpackage 'unstable' 'foo' 'all' '1.0' '' '' "$DESCR @@ -23,7 +17,7 @@ insertpackage 'testing' 'bar' 'i386' '2.0' '' '' "$DESCR2" setupaptarchive -APTARCHIVE=$(readlink -f ./aptarchive) +APTARCHIVE="$(readlink -f ./aptarchive)" testfailureequal 'E: You must give at least one search pattern' aptcache search testfailureequal 'E: You must give at least one search pattern' apt search |