rename project to runaway
This commit is contained in:
@@ -6,7 +6,7 @@ run_admin_home() {
|
||||
local target="$BATS_TEST_TMPDIR/External Data"
|
||||
mkdir -p "$target/private/var/db" "$target/private/etc" "$target/Users"
|
||||
sed '/^main "\$@"$/d' "$script" > "$definitions"
|
||||
run "${UNLEASH_TEST_SHELL:-bash}" -c '
|
||||
run "${RUNAWAY_TEST_SHELL:-bash}" -c '
|
||||
source "$1"
|
||||
target="$2" mode="$3" calls="$4"
|
||||
dscl() {
|
||||
@@ -32,7 +32,7 @@ run_admin_home() {
|
||||
|
||||
@test "dualboot assigns the new home to the target UID and staff group" {
|
||||
local entrypoint
|
||||
for entrypoint in unleash unleash-standalone.sh; do
|
||||
for entrypoint in runaway runaway-standalone.sh; do
|
||||
run_admin_home "$BATS_TEST_DIRNAME/../$entrypoint" fresh
|
||||
[ "$status" -eq 0 ]
|
||||
grep -qx ownership "$BATS_TEST_TMPDIR/calls"
|
||||
@@ -44,7 +44,7 @@ run_admin_home() {
|
||||
|
||||
@test "dualboot stops before setup and network markers when home ownership fails" {
|
||||
local entrypoint
|
||||
for entrypoint in unleash unleash-standalone.sh; do
|
||||
for entrypoint in runaway runaway-standalone.sh; do
|
||||
run_admin_home "$BATS_TEST_DIRNAME/../$entrypoint" ownership-fails
|
||||
[ "$status" -ne 0 ]
|
||||
[[ "$output" != *"Admin 'fixture' created"* ]]
|
||||
@@ -56,7 +56,7 @@ run_admin_home() {
|
||||
|
||||
@test "dualboot preserves existing accounts homes and dangling home symlinks" {
|
||||
local entrypoint mode
|
||||
for entrypoint in unleash unleash-standalone.sh; do
|
||||
for entrypoint in runaway runaway-standalone.sh; do
|
||||
for mode in existing-user existing-home home-symlink; do
|
||||
local target="$BATS_TEST_TMPDIR/External Data"
|
||||
mkdir -p "$target/Users"
|
||||
|
||||
Reference in New Issue
Block a user