ostree/tests/kolainst/destructive/basic-misc.sh
Colin Walters 998154f8ff main: Also support CLI extensions in /usr/libexec/libostree/ext
In fixing https://github.com/coreos/rpm-ostree/pull/3323
I felt that it was a bit ugly we're installing `/usr/bin/ostree-container`.

It's kind of an implementation detail.  We want users to use
`ostree container`.

Let's support values outside of $PATH too.

For example, this also ensures that TAB completion for `ost` expands
to `ostree ` with a space.
2022-01-11 20:13:33 -05:00

24 lines
401 B
Bash

#!/bin/bash
# Random misc tests
set -xeuo pipefail
. ${KOLA_EXT_DATA}/libinsttest.sh
echo "1..1"
date
# Test CLI extensions installed alongside the system
extdir=/usr/libexec/libostree/ext/
mkdir -p "${extdir}"
ln -sr /usr/bin/env ${extdir}/ostree-env
env TESTENV=foo ostree env > out.txt
assert_file_has_content out.text TESTENV=foo
rm -vf "${extdir}/ostree-env"
echo "ok env"
# End test
date