test-composefs: Sync flow with other tests
authorColin Walters <walters@verbum.org>
Tue, 27 Jun 2023 10:59:51 +0000 (06:59 -0400)
committerColin Walters <walters@verbum.org>
Wed, 28 Jun 2023 15:58:20 +0000 (11:58 -0400)
I am not sure why this is failing on older Debian systems,
but I'm wildly guessing that something being done in `libtest.sh`
is setting up automake in a way that we need.  This is done
in other tests.

Or maybe it's the missing `$CMD_PREFIX`?  Let's see...

tests/test-composefs.sh

index f76cbf22e0f2f81940c783f4813b782a9d34e495..9a14e545b8f04bf27ba80563fa3cdaa96057b1dc 100755 (executable)
 
 set -euo pipefail
 
-if ! ostree --version | grep -q -e '- composefs'; then
+. $(dirname $0)/libtest.sh
+
+if ! ${CMD_PREFIX} ostree --version | grep -q -e '- composefs'; then
     echo "1..0 #SKIP no composefs support compiled in"
     exit 0
 fi
 
-. $(dirname $0)/libtest.sh
 
 setup_test_repository "bare-user"