Skip to content

Commit

Permalink
test: make the output of TEST-69 less painful to read
Browse files Browse the repository at this point in the history
The logs from TEST-69 still contain a lot of unnecessary shell
metacharacters, so to make the output more readable let's just set
TERM=dumb, instead of having to strip everything semi-manually. Also,
move the related --background= tweak to TEST-69, since it's relevant
only for that particular test.

Follow-up for 8d4bfd3.

v255-only change: --background= is not supported in v255's sd-nspawn, so
                  that hunk is dropped

(cherry picked from commit 8d9cdb3)
(cherry picked from commit 93c5ff0)
(cherry picked from commit 75d7263)
  • Loading branch information
mrc0mmand authored and bluca committed Apr 25, 2024
1 parent b26c0f4 commit 8db3e00
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/test-shutdown.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@


def run(args):

ret = 1
logger = logging.getLogger("test-shutdown")
logfile = None
Expand All @@ -25,7 +24,7 @@ def run(args):

logger.info("spawning test")
console = pexpect.spawn(args.command, args.arg, logfile=logfile, env={
"TERM": "linux",
"TERM": "dumb",
}, encoding='utf-8', timeout=60)

logger.debug("child pid %d", console.pid)
Expand Down

0 comments on commit 8db3e00

Please sign in to comment.