summaryrefslogtreecommitdiff
path: root/test/integration/test-apt-cli-pager
diff options
context:
space:
mode:
authorJulian Andres Klode <julian.klode@canonical.com>2025-03-26 17:01:12 +0100
committerJulian Andres Klode <jak@debian.org>2025-03-26 16:42:30 +0000
commit805ddd0acc71e653d0f5f841e0ceaff665fce063 (patch)
tree9e375a1b113407e2d54ecca363c05bc765040927 /test/integration/test-apt-cli-pager
parent75b9d167825be0d6f22884ce4a8b8392bdd12d63 (diff)
pager: Also set SMK in LESS, fix LV=C to be LV=-c
Sync the LESS environment with systemd to make it more user-friendly than just a blinking colon: - S disables the terminal bell - M makes the output verbose, so the prompt is not ":" but "lines 1-n" - K means that Ctrl+c exits the command Also fix the LV= environment variable to use -c and not C.
Diffstat (limited to 'test/integration/test-apt-cli-pager')
-rwxr-xr-xtest/integration/test-apt-cli-pager2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/integration/test-apt-cli-pager b/test/integration/test-apt-cli-pager
index cc220c81f..ffa4e828d 100755
--- a/test/integration/test-apt-cli-pager
+++ b/test/integration/test-apt-cli-pager
@@ -126,5 +126,5 @@ Checksums-Sha256:
PAGER="head -2" testsuccessequal "Package: foo
Binary: foo" runapt --unbuffer apt showsrc foo -o TestPager="head- 2"
-PAGER='echo $LESS' testsuccessequal "FRX" runapt --unbuffer apt showsrc foo -o TestPager='echo $LESS (1)'
+PAGER='echo $LESS' testsuccessequal "FRSXMK" runapt --unbuffer apt showsrc foo -o TestPager='echo $LESS (1)'
LESS=FRXM PAGER='echo $LESS' testsuccessequal "FRXM" runapt --unbuffer apt showsrc foo -o TestPager='echo $LESS (2)'