tests: Look for trivial-httpd in $libexecdir
Since b825aac, trivial-httpd is in $libexecdir/libostree by default and
not available through the ostree runner in PATH. Try to adjust find it
when running the tests installed.
Closes: #837
Approved by: dbnicholson
This commit is contained in:
parent
1fe914755a
commit
fa4e4bf4df
|
|
@ -105,7 +105,15 @@ fi
|
||||||
if test -n "${OSTREE_UNINSTALLED:-}"; then
|
if test -n "${OSTREE_UNINSTALLED:-}"; then
|
||||||
OSTREE_HTTPD=${OSTREE_UNINSTALLED}/ostree-trivial-httpd
|
OSTREE_HTTPD=${OSTREE_UNINSTALLED}/ostree-trivial-httpd
|
||||||
else
|
else
|
||||||
OSTREE_HTTPD="${CMD_PREFIX} ostree trivial-httpd"
|
# trivial-httpd is now in $libexecdir by default, which we don't
|
||||||
|
# know at this point. Fortunately, libtest.sh is also in
|
||||||
|
# $libexecdir, so make an educated guess. If it's not found, assume
|
||||||
|
# it's still runnable as "ostree trivial-httpd".
|
||||||
|
if [ -x "${test_srcdir}/../../libostree/ostree-trivial-httpd" ]; then
|
||||||
|
OSTREE_HTTPD="${CMD_PREFIX} ${test_srcdir}/../../libostree/ostree-trivial-httpd"
|
||||||
|
else
|
||||||
|
OSTREE_HTTPD="${CMD_PREFIX} ostree trivial-httpd"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
assert_files_hardlinked() {
|
assert_files_hardlinked() {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue