]> git.saurik.com Git - apt.git/blobdiff - test/integration/test-apt-translation-has-no-packages
test: Use :$(id -gn) instead of :root (when run as root)
[apt.git] / test / integration / test-apt-translation-has-no-packages
index 4c57623b14bf581570929e7f0a6f5cad23e8f0fb..3c07af3b58d99894b9416b6f2727d4ebe716acbe 100755 (executable)
@@ -9,18 +9,12 @@
 #
 set -e
 
-TESTDIR=$(readlink -f $(dirname $0))
-. $TESTDIR/framework
+TESTDIR="$(readlink -f "$(dirname "$0")")"
+. "$TESTDIR/framework"
 
 setupenvironment
 configarchitecture "amd64"
 
-if [ ! -x ${BUILDDIRECTORY}/apt ]; then
-    msgmsg "No ${BUILDDIRECTORY}/apt"
-    msgskip
-    exit 0
-fi
-
 buildsimplenativepackage 'foo' 'all' '1.0'
 setupaptarchive
 
@@ -38,4 +32,4 @@ testsuccessequal "foo:
   Candidate: 1.0
   Version table:
      1.0 500
-        500 file:$APTARCHIVE unstable/main amd64 Packages" aptcache policy foo
+        500 file:$APTARCHIVE unstable/main all Packages" aptcache policy foo