rename project to runaway
This commit is contained in:
@@ -4,7 +4,7 @@ run_network_state() {
|
||||
local script="$1" mode="$2"
|
||||
local definitions="$BATS_TEST_TMPDIR/network.functions"
|
||||
sed '/^main "\$@"$/d' "$script" > "$definitions"
|
||||
run "${UNLEASH_TEST_SHELL:-bash}" -u -c '
|
||||
run "${RUNAWAY_TEST_SHELL:-bash}" -u -c '
|
||||
source "$1"
|
||||
mode="$2"
|
||||
load_config() { :; }
|
||||
@@ -41,7 +41,7 @@ run_network_state() {
|
||||
|
||||
@test "network doctor distinguishes query failure from absent hardware" {
|
||||
local entrypoint mode
|
||||
for entrypoint in unleash unleash-standalone.sh; do
|
||||
for entrypoint in runaway runaway-standalone.sh; do
|
||||
for mode in missing portsfail powerfail linkfail; do
|
||||
run_network_state "$BATS_TEST_DIRNAME/../$entrypoint" "$mode"
|
||||
[ "$status" -ne 0 ]
|
||||
@@ -53,7 +53,7 @@ run_network_state() {
|
||||
|
||||
@test "network doctor classifies IPv4 state without exposing addresses" {
|
||||
local entrypoint mode expected
|
||||
for entrypoint in unleash unleash-standalone.sh; do
|
||||
for entrypoint in runaway runaway-standalone.sh; do
|
||||
for mode in configured linklocal none; do
|
||||
expected="$mode"; [ "$mode" != linklocal ] || expected=link-local
|
||||
run_network_state "$BATS_TEST_DIRNAME/../$entrypoint" "$mode"
|
||||
@@ -68,7 +68,7 @@ run_network_state() {
|
||||
|
||||
@test "network doctor reports absent Wi-Fi after a successful hardware query" {
|
||||
local entrypoint
|
||||
for entrypoint in unleash unleash-standalone.sh; do
|
||||
for entrypoint in runaway runaway-standalone.sh; do
|
||||
run_network_state "$BATS_TEST_DIRNAME/../$entrypoint" absent
|
||||
[ "$status" -eq 0 ]
|
||||
[[ "$output" == *"No Wi-Fi hardware port reported"* ]]
|
||||
|
||||
Reference in New Issue
Block a user