if["$(mode_of "$k3sroot")"= 700 ];then echo"PASS k3s's storage root is back to 0700";else echo"FAIL k3s's storage root is $(mode_of "$k3sroot"), want 700";fails=$((fails +1));fi
if["$(mode_of "$custom")"= 755 ];then echo"PASS a custom worlds root keeps its own mode";else echo"FAIL a custom worlds root was changed to $(mode_of "$custom")";fails=$((fails +1));fi
out="$(run_revoke "$k3sroot""""/nowhere")"
case"$out"in
*SETFACL*|*LOG*|*WARN*)echo"FAIL: a root with no old grant must be left alone: $out";fails=$((fails +1));;
*)echo"PASS a root with no old grant is left alone";;
esac
command rm-rf"$k3sroot""$custom"
# --- the registry mirror writer -----------------------------------------------------------
# k3s only consults registries.yaml at agent start, so a CONTENT change must restart k3s and
# an identical file (every re-run) must restart nothing. The k3s restart is the expensive,