diff --git a/test-under-isolated-flox-PATH b/test-under-isolated-flox-PATH new file mode 100755 index 000000000..b5a6f1614 --- /dev/null +++ b/test-under-isolated-flox-PATH @@ -0,0 +1,18 @@ +#!/usr/bin/env bash + +set -euxo pipefail + +# Find flox (while PATH is still available) +FLOX=$(which flox) + +# Clear PATH! +PATH= + +# NOT source tools/flox +$FLOX activate --mode=run + +echo "Now source ./test.bash ..." +source ./test.bash + +# TODO or use something like: +# env -i flox activate -- source diff --git a/test.bash b/test.bash index 6b0b27b97..6e58189d0 100755 --- a/test.bash +++ b/test.bash @@ -1,4 +1,3 @@ -#!/usr/bin/env bash # SPDX-License-Identifier: Apache-2.0 # # Copyright 2023-2025 The Enola Authors @@ -15,7 +14,9 @@ # See the License for the specific language governing permissions and # limitations under the License. -set -euo pipefail +set -euxo pipefail + +echo "test.bash: Yo!" # This script builds the project *WITHOUT* requiring containers. # It can be used *IN* a container though; and is so, by the ./build script.