mirror of
https://github.com/NixOS/nix.git
synced 2024-11-22 06:42:28 +00:00
bf0bf3d1be
Co-Authored-By: Théophane Hufschmitt <theophane.hufschmitt@tweag.io>
26 lines
766 B
Bash
26 lines
766 B
Bash
source common.sh
|
|
|
|
requireEnvironment
|
|
setupConfig
|
|
setupStoreDirs
|
|
|
|
mkdir -p $TEST_ROOT/bad_test
|
|
badTestRoot=$TEST_ROOT/bad_test
|
|
storeBadRoot="local-overlay://?root=$badTestRoot&lower-store=$storeA&upper-layer=$storeBTop"
|
|
storeBadLower="local-overlay://?root=$storeBRoot&lower-store=$badTestRoot&upper-layer=$storeBTop"
|
|
storeBadUpper="local-overlay://?root=$storeBRoot&lower-store=$storeA&upper-layer=$badTestRoot"
|
|
|
|
declare -a storesBad=(
|
|
"$storeBadRoot" "$storeBadLower" "$storeBadUpper"
|
|
)
|
|
|
|
for i in "${storesBad[@]}"; do
|
|
echo $i
|
|
unshare --mount --map-root-user bash <<EOF
|
|
source common.sh
|
|
setupStoreDirs
|
|
mountOverlayfs
|
|
expectStderr 1 nix doctor --store "$i" | grepQuiet "overlay filesystem .* mounted incorrectly"
|
|
EOF
|
|
done
|