mirror of
https://github.com/ostreedev/ostree.git
synced 2024-12-22 17:35:55 +03:00
998154f8ff
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.
24 lines
401 B
Bash
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
|