From d1571d8660f5bb5eb47f4ef633649a1ab390c299 Mon Sep 17 00:00:00 2001 From: Lili Nie Date: Thu, 31 Oct 2024 10:08:12 -0400 Subject: [PATCH] squash:update^^ --- tests/clean/basic/test.sh | 2 +- tmt/cli.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/clean/basic/test.sh b/tests/clean/basic/test.sh index 701ad1e403..5a65c733f5 100755 --- a/tests/clean/basic/test.sh +++ b/tests/clean/basic/test.sh @@ -4,7 +4,7 @@ rlJournalStart rlPhaseStartSetup rlRun "root=/var/tmp/tmt" - rlRun "test_root=/var/tmp/test_root" + rlRun "test_root=\$(mktemp -d)" 0 "Creating tmp root workdir" rlRun "pushd data" rlPhaseEnd diff --git a/tmt/cli.py b/tmt/cli.py index 798ef7faf3..200bdc03b4 100644 --- a/tmt/cli.py +++ b/tmt/cli.py @@ -1872,8 +1872,7 @@ def status( raise tmt.utils.GeneralError(f"Path '{workdir_root}' doesn't exist.") status_obj = tmt.Status( - logger=context.obj.logger.clone(). - apply_verbosity_options(**kwargs), + logger=context.obj.logger.clone().apply_verbosity_options(**kwargs), cli_invocation=CliInvocation.from_context(context), workdir_root=effective_workdir_root(workdir_root)) status_obj.show()