Skip to content

Commit 5fde888

Browse files
committed
debug: guestfish test
1 parent c0c6a2e commit 5fde888

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

test/scripts/guestfish.bats

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,21 @@
11
#!/usr/bin/env bats
22
# bashsupport disable=BP5007
33

4-
@test "Xshould start interactive shell by default" {
5-
6-
LIBGUESTFSW_IMAGE="$BUILD_TAG" expect <<EXPECT
4+
# TODO free up space; does not work otherwise on GitHub
5+
@test "should start interactive shell by default" {
6+
skip
7+
LIBGUESTFSW_IMAGE="$BUILD_TAG" run /usr/bin/expect -df "$(make_interpretable '#!/usr/bin/expect -d' - <<EXPECT
78
set timeout 15
89
spawn ./guestfish
9-
expect "‘quit’ to quit the shell"
10+
expect "help"
11+
send "quit"
1012
EXPECT
13+
)"
1114

15+
assert_success
1216
assert_line --partial 'Welcome to guestfish'
1317
# shellcheck disable=SC1112
14-
assert_line --partial '‘quit’ to quit the shell'
18+
assert_line --partial 'Type: ‘help’ for help on commands'
1519
}
1620

1721
@test "should execute script if specified" {

0 commit comments

Comments
 (0)