Skip to content

Commit

Permalink
test: explicitly set TERM=linux for TEST-69-SHUTDOWN
Browse files Browse the repository at this point in the history
sulogin from the latest util-linux started falling back to vt102 instead
of linux, which makes screen sad (because we install only the linux
terminfo into the test image) and expect trips over the unexpected
warning. Let's just explicitly set TERM=linux before invoking screen to
avoid this.

+ make -C TEST-69-SHUTDOWN setup run
...
INFO:test-shutdown:log in and start screen
root
root
Last login: Sun Mar  3 13:19:31 from 18.191.105.60
-bash-5.2# screen
screen
Cannot find terminfo entry for 'vt102'.
-bash-5.2# ERROR:test-shutdown:Timeout exceeded.
  • Loading branch information
mrc0mmand committed Mar 3, 2024
1 parent 85b774d commit 7a63c5e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/TEST-69-SHUTDOWN/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ EOF

inst /usr/bin/screen
echo "PS1='screen\$WINDOW # '" >>"$workspace/root/.bashrc"
echo "TERM=linux" >>"$workspace/root/.bash_profile"
echo 'startup_message off' >"$workspace/etc/screenrc"
echo 'bell_msg ""' >>"$workspace/etc/screenrc"
}
Expand Down

0 comments on commit 7a63c5e

Please sign in to comment.