:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Setup :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ 09:27:20 ] :: [ BEGIN ] :: Create tmp directory :: actually running 'tmp=$(mktemp -d)' :: [ 09:27:20 ] :: [ PASS ] :: Create tmp directory (Expected 0, got 0) :: [ 09:27:20 ] :: [ BEGIN ] :: Running 'export TMT_NO_COLOR=1' :: [ 09:27:20 ] :: [ PASS ] :: Command 'export TMT_NO_COLOR=1' (Expected 0, got 0) :: [ 09:27:20 ] :: [ BEGIN ] :: Running 'pushd data' /var/ARTIFACTS/work-basicky66gkmp/plans/features/basic/discover/default-0/tests/tests/try/investigate/data /var/ARTIFACTS/work-basicky66gkmp/plans/features/basic/discover/default-0/tests/tests/try/investigate :: [ 09:27:20 ] :: [ PASS ] :: Command 'pushd data' (Expected 0, got 0) :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Duration: 0s :: Assertions: 3 good, 0 bad :: RESULT: PASS (Setup) tmt-report-result: saving /Setup output /tmp/tmp.ezQBLxGNAc into /var/ARTIFACTS/work-basicky66gkmp/plans/features/basic/execute/data/guest/default-0/tests/try/investigate-90/data/Setup/output.txt tmt-report-result: adding to the result file /var/ARTIFACTS/work-basicky66gkmp/plans/features/basic/execute/data/guest/default-0/tests/try/investigate-90/data/tmt-report-results.yaml :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Interactive Investigation :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ 09:27:20 ] :: [ BEGIN ] :: Try interactive investigation :: actually running 'LANG=en_US ./investigate.exp' spawn tmt try -p /plan /var/tmp/tmt/run-082 Let's try /tests/bad and /tests/good with /plan. /plan discover directory: /var/ARTIFACTS/work-basicky66gkmp/plans/features/basic/discover/default-0/tests/tests/try/investigate/data how: fmf order: 50 summary: 2 tests selected /tests/bad /tests/good provision queued provision.provision tasks #1: default-0 provision.provision task #1: default-0 how: local order: 50 primary address: localhost ansible: {} primary address: localhost topology address multihost name: default-0 arch: x86_64 distro: Fedora Linux 45 (Cloud Edition Prerelease) kernel: 7.1.0-0.rc5.35.fc45.x86_64 package manager: dnf5 bootc builder: dnf5 is container: no is ostree: no is image mode: no distro id: fedora distro major version: 45 is toolbox: no selinux: yes systemd: yes systemd soft-reboot: yes rsync: yes is superuser: yes can sudo: yes queued push tasks #1: push to default-0 push task #1: push to default-0 summary: 1 guest provisioned prepare queued push tasks #1: push to default-0 push task #1: push to default-0 queued prepare tasks #1: essential-requires on default-0 prepare task #1: essential-requires on default-0 how: install summary: Install essential required packages name: essential-requires order: 30 where: default-0 package: 1 package requested /usr/bin/flock cmd: rpm -q --whatprovides /usr/bin/flock || dnf5 install -y /usr/bin/flock stdout: util-linux-core-2.42.1-4.fc45.x86_64 queued pull tasks #1: pull from default-0 pull task #1: pull from default-0 summary: 1 preparation applied execute queued execute tasks #1: default-0 on default-0 execute task #1: default-0 on default-0 how: tmt order: 50 ignore-duration: false exit-first: false test: /tests/bad warn: Test duration is not effective due to interactive mode. duration deadline: none cmd: echo do something bad bash # Investigate something echo everything bad done exit 1 ls exit do something bad [systemd] Failed Units: 1 systemd-imds-early-network.service [root@ip-172-31-31-123 tests]# ls investigate.exp tmt-test-wrapper-inner.sh-tests-bad-1-default-0-default-0 plan.fmf tmt-test-wrapper-outer.sh-tests-bad-1-default-0-default-0 tests.fmf [root@ip-172-31-31-123 tests]# exit exit everything bad done 00:00:00 fail /tests/bad (on default-0) [1/2] test: /tests/good warn: Test duration is not effective due to interactive mode. duration deadline: none cmd: echo do something good bash # Investigate something echo everything good done exit 0 ls exit do something good [systemd] Failed Units: 1 systemd-imds-early-network.service [root@ip-172-31-31-123 tests]# ls investigate.exp plan.fmf tests.fmf tmt-test-wrapper-inner.sh-tests-bad-1-default-0-default-0 tmt-test-wrapper-inner.sh-tests-good-2-default-0-default-0 tmt-test-wrapper-outer.sh-tests-bad-1-default-0-default-0 tmt-test-wrapper-outer.sh-tests-good-2-default-0-default-0 [root@ip-172-31-31-123 tests]# exit exit everything good done 00:00:00 pass /tests/good (on default-0) [2/2] summary: 2 tests executed What do we do next? test rediscover tests and execute them again login log into the guest for experimenting host run command on the host lcd change directory on the local host, discover tests there verbose set the desired level of verbosity. debug choose a different debugging level discover gather information about tests to be executed prepare prepare the environment for testing execute run tests using the specified executor report provide test results overview and send reports finish perform the user defined finishing tasks cleanup clean up guests and prune the workdir keep exit the session but keep the run for later use quit clean up the run and quit the session > q /plan cleanup queued cleanup tasks #1: default-0 on default-0 cleanup task #1: default-0 on default-0 how: tmt order: 50 Prune '/plan' plan workdir '/var/tmp/tmt/run-082/plan'. summary: 1 task completed Run /var/tmp/tmt/run-082 successfully finished. Bye for now! :: [ 09:27:22 ] :: [ PASS ] :: Try interactive investigation (Expected 0, got 0) :: [ 09:27:22 ] :: [ PASS ] :: File '/var/tmp/rlRun_LOG.ZFXpVDrb' should contain '2 tests executed' :: [ 09:27:22 ] :: [ PASS ] :: File '/var/tmp/rlRun_LOG.ZFXpVDrb' should contain 'tmt-test-wrapper-inner.sh' :: [ 09:27:22 ] :: [ PASS ] :: File '/var/tmp/rlRun_LOG.ZFXpVDrb' should contain 'tmt-test-wrapper-outer.sh' :: [ 09:27:22 ] :: [ PASS ] :: File '/var/tmp/rlRun_LOG.ZFXpVDrb' should contain 'everything bad done' :: [ 09:27:22 ] :: [ PASS ] :: File '/var/tmp/rlRun_LOG.ZFXpVDrb' should contain 'fail /tests/bad' :: [ 09:27:22 ] :: [ PASS ] :: File '/var/tmp/rlRun_LOG.ZFXpVDrb' should contain 'everything good done' :: [ 09:27:22 ] :: [ PASS ] :: File '/var/tmp/rlRun_LOG.ZFXpVDrb' should contain 'pass /tests/good' :: [ 09:27:22 ] :: [ PASS ] :: File '/var/tmp/rlRun_LOG.ZFXpVDrb' should not contain 'cannot set terminal process group' :: [ 09:27:23 ] :: [ PASS ] :: File '/var/tmp/rlRun_LOG.ZFXpVDrb' should not contain 'no job control in this shell' :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Duration: 3s :: Assertions: 10 good, 0 bad :: RESULT: PASS (Interactive Investigation) tmt-report-result: saving /Interactive-Investigation output /tmp/tmp.tnGwzY7NwF into /var/ARTIFACTS/work-basicky66gkmp/plans/features/basic/execute/data/guest/default-0/tests/try/investigate-90/data/Interactive-Investigation/output.txt tmt-report-result: adding to the result file /var/ARTIFACTS/work-basicky66gkmp/plans/features/basic/execute/data/guest/default-0/tests/try/investigate-90/data/tmt-report-results.yaml :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Cleanup :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ 09:27:23 ] :: [ BEGIN ] :: Running 'popd' /var/ARTIFACTS/work-basicky66gkmp/plans/features/basic/discover/default-0/tests/tests/try/investigate :: [ 09:27:23 ] :: [ PASS ] :: Command 'popd' (Expected 0, got 0) :: [ 09:27:23 ] :: [ BEGIN ] :: Remove tmp directory :: actually running 'rm -r /tmp/tmp.GarjXbSfnQ' :: [ 09:27:23 ] :: [ PASS ] :: Remove tmp directory (Expected 0, got 0) :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Duration: 0s :: Assertions: 2 good, 0 bad :: RESULT: PASS (Cleanup) tmt-report-result: saving /Cleanup output /tmp/tmp.k9h5tJEsz0 into /var/ARTIFACTS/work-basicky66gkmp/plans/features/basic/execute/data/guest/default-0/tests/try/investigate-90/data/Cleanup/output.txt tmt-report-result: adding to the result file /var/ARTIFACTS/work-basicky66gkmp/plans/features/basic/execute/data/guest/default-0/tests/try/investigate-90/data/tmt-report-results.yaml :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: /tests/try/investigate :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ 09:27:23 ] :: [ LOG ] :: Phases fingerprint: GpTeNtEf :: [ 09:27:23 ] :: [ LOG ] :: Asserts fingerprint: rEpk6f29 File '/var/ARTIFACTS/work-basicky66gkmp/plans/features/basic/execute/data/guest/default-0/tests/try/investigate-90/journal.xml' already stored in '/var/ARTIFACTS/work-basicky66gkmp/plans/features/basic/execute/data/guest/default-0/tests/try/investigate-90'. :: [ 09:27:23 ] :: [ INFO ] :: Deleting rlRun_LOG file(s) :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Duration: 4s :: Phases: 3 good, 0 bad :: OVERALL RESULT: PASS (/tests/try/investigate)