:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Setup :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ 08:51:19 ] :: [ BEGIN ] :: Running 'set -o pipefail' :: [ 08:51:19 ] :: [ PASS ] :: Command 'set -o pipefail' (Expected 0, got 0) /usr/bin/pre-commit :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Duration: 0s :: Assertions: 1 good, 0 bad :: RESULT: PASS (Setup) tmt-report-result: saving /Setup output /tmp/tmp.n3y48NFeFD into /var/ARTIFACTS/work-advancedm608c7wg/plans/features/advanced/execute/data/guest/default-0/tests/precommit-16/data/Setup/output.txt tmt-report-result: adding to the result file /var/ARTIFACTS/work-advancedm608c7wg/plans/features/advanced/execute/data/guest/default-0/tests/precommit-16/data/tmt-report-results.yaml :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Hook: tmt-tests-lint :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ 08:51:19 ] :: [ BEGIN ] :: Creating tmp directory :: actually running 'tmp=$(mktemp -d)' :: [ 08:51:19 ] :: [ PASS ] :: Creating tmp directory (Expected 0, got 0) :: [ 08:51:19 ] :: [ BEGIN ] :: Running 'pushd /tmp/tmp.I9OCzKvL9u' /tmp/tmp.I9OCzKvL9u /var/ARTIFACTS/work-advancedm608c7wg/plans/features/advanced/discover/default-0/tests/tests/precommit :: [ 08:51:19 ] :: [ PASS ] :: Command 'pushd /tmp/tmp.I9OCzKvL9u' (Expected 0, got 0) :: [ 08:51:19 ] :: [ BEGIN ] :: Running 'tmt init' Initialized the fmf tree root '/tmp/tmp.I9OCzKvL9u/.fmf'. Use 'tmt init --template' with 'mini', 'base' or 'full' to create example content. Add tests, plans or stories with 'tmt test create', 'tmt plan create' or 'tmt story create'. :: [ 08:51:21 ] :: [ PASS ] :: Command 'tmt init' (Expected 0, got 0) :: [ 08:51:21 ] :: [ BEGIN ] :: Running 'git init' Initialized empty Git repository in /tmp/tmp.I9OCzKvL9u/.git/ :: [ 08:51:21 ] :: [ PASS ] :: Command 'git init' (Expected 0, got 0) :: [ 08:51:21 ] :: [ BEGIN ] :: Running 'git config --local user.name LZachar' :: [ 08:51:21 ] :: [ PASS ] :: Command 'git config --local user.name LZachar' (Expected 0, got 0) :: [ 08:51:21 ] :: [ BEGIN ] :: Running 'git config --local user.email lzachar@redhat.com' :: [ 08:51:21 ] :: [ PASS ] :: Command 'git config --local user.email lzachar@redhat.com' (Expected 0, got 0) :: [ 08:51:21 ] :: [ BEGIN ] :: Running 'cat .pre-commit-config.yaml' repos: - repo: /var/ARTIFACTS/work-advancedm608c7wg/plans/features/advanced/discover/default-0/tests/tests/precommit/../.. rev: "5793f160" hooks: - id: "tmt-tests-lint" :: [ 08:51:21 ] :: [ PASS ] :: Command 'cat .pre-commit-config.yaml' (Expected 0, got 0) :: [ 08:51:21 ] :: [ BEGIN ] :: Running 'pre-commit install' pre-commit installed at .git/hooks/pre-commit :: [ 08:51:21 ] :: [ PASS ] :: Command 'pre-commit install' (Expected 0, got 0) :: [ 08:51:21 ] :: [ PASS ] :: File '/var/tmp/rlRun_LOG.IkVor2Tv' should contain 'pre-commit installed' :: [ 08:51:21 ] :: [ BEGIN ] :: Running 'git add .pre-commit-config.yaml' :: [ 08:51:21 ] :: [ PASS ] :: Command 'git add .pre-commit-config.yaml' (Expected 0, got 0) :: [ 08:51:21 ] :: [ BEGIN ] :: Running 'git commit -m nothing_to_check' [INFO] Initializing environment for /var/ARTIFACTS/work-advancedm608c7wg/plans/features/advanced/discover/default-0/tests/tests/precommit/../... [INFO] Installing environment for /var/ARTIFACTS/work-advancedm608c7wg/plans/features/advanced/discover/default-0/tests/tests/precommit/../... [INFO] Once installed this environment will be reused. [INFO] This may take a few minutes... tmt tests lint.......................................(no files to check)Skipped [main (root-commit) ec432fe] nothing_to_check 1 file changed, 5 insertions(+) create mode 100644 .pre-commit-config.yaml :: [ 08:51:32 ] :: [ PASS ] :: Command 'git commit -m nothing_to_check' (Expected 0, got 0) :: [ 08:51:32 ] :: [ PASS ] :: File '/var/tmp/rlRun_LOG.QbFHa3dp' should contain 'tmt tests lint.*no files to check' :: [ 08:51:32 ] :: [ BEGIN ] :: Running 'echo 'test: echo' > main.fmf' :: [ 08:51:32 ] :: [ PASS ] :: Command 'echo 'test: echo' > main.fmf' (Expected 0, got 0) :: [ 08:51:32 ] :: [ BEGIN ] :: Running 'git add main.fmf' :: [ 08:51:32 ] :: [ PASS ] :: Command 'git add main.fmf' (Expected 0, got 0) :: [ 08:51:32 ] :: [ BEGIN ] :: Running 'git commit -m 'missing_fmf_root'' tmt tests lint...........................................................Failed - hook id: tmt-tests-lint - exit code: 2 Command 'git ls-files --error-unmatch /tmp/tmp.I9OCzKvL9u/./.fmf/version' returned 1. # stderr (2/2 lines) # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: pathspec '/tmp/tmp.I9OCzKvL9u/./.fmf/version' did not match any file(s) known to git Did you forget to 'git add'? # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :: [ 08:51:33 ] :: [ PASS ] :: Command 'git commit -m 'missing_fmf_root'' (Expected 1, got 1) :: [ 08:51:33 ] :: [ PASS ] :: File '/var/tmp/rlRun_LOG.cRbI6PPe' should contain 'tmt tests lint.*Failed' :: [ 08:51:33 ] :: [ BEGIN ] :: Running 'git add .fmf/version' :: [ 08:51:33 ] :: [ PASS ] :: Command 'git add .fmf/version' (Expected 0, got 0) :: [ 08:51:33 ] :: [ BEGIN ] :: Running 'git commit -m 'pass'' tmt tests lint...........................................................Passed [main e56d195] pass 2 files changed, 2 insertions(+) create mode 100644 .fmf/version create mode 100644 main.fmf :: [ 08:51:35 ] :: [ PASS ] :: Command 'git commit -m 'pass'' (Expected 0, got 0) :: [ 08:51:35 ] :: [ PASS ] :: File '/var/tmp/rlRun_LOG.bYrRvvPB' should contain 'tmt tests lint.*Passed' :: [ 08:51:35 ] :: [ BEGIN ] :: Running 'echo foo: bar > wrong.fmf' :: [ 08:51:35 ] :: [ PASS ] :: Command 'echo foo: bar > wrong.fmf' (Expected 0, got 0) :: [ 08:51:35 ] :: [ BEGIN ] :: Running 'git add wrong.fmf' :: [ 08:51:35 ] :: [ PASS ] :: Command 'git add wrong.fmf' (Expected 0, got 0) :: [ 08:51:35 ] :: [ BEGIN ] :: Running 'git commit -m wrong' tmt tests lint...........................................................Failed - hook id: tmt-tests-lint - exit code: 1 warn: /wrong: - 'foo' does not match any of the regexes: '^extra-' /wrong warn: /wrong: - 'foo' does not match any of the regexes: '^extra-' warn C000 key "foo" not recognized by schema /schemas/test, and does not match "^extra-" pattern warn C000 fmf node failed schema validation warn C001 summary key is missing fail T001 unknown key "foo" is used pass T002 test script is defined pass T003 directory path is absolute pass T004 test path '/tmp/tmp.I9OCzKvL9u' does exist skip T005 legacy relevancy not detected skip T006 legacy 'coverage' field not detected skip T007 not a manual test skip T008 not a manual test skip T009 library/file requirements not used :: [ 08:51:36 ] :: [ PASS ] :: Command 'git commit -m wrong' (Expected 1, got 1) :: [ 08:51:36 ] :: [ PASS ] :: File '/var/tmp/rlRun_LOG.8wJnhtTT' should contain 'tmt tests lint.*Failed' :: [ 08:51:36 ] :: [ PASS ] :: File '/var/tmp/rlRun_LOG.8wJnhtTT' should contain 'fail .001 unknown key "foo" is used' :: [ 08:51:36 ] :: [ BEGIN ] :: Running 'git commit --no-verify -m wrong' [main b7872ea] wrong 1 file changed, 1 insertion(+) create mode 100644 wrong.fmf :: [ 08:51:36 ] :: [ PASS ] :: Command 'git commit --no-verify -m wrong' (Expected 0, got 0) :: [ 08:51:36 ] :: [ BEGIN ] :: Running 'echo summary: hello world > good.fmf' :: [ 08:51:36 ] :: [ PASS ] :: Command 'echo summary: hello world > good.fmf' (Expected 0, got 0) :: [ 08:51:36 ] :: [ BEGIN ] :: Running 'git add good.fmf' :: [ 08:51:36 ] :: [ PASS ] :: Command 'git add good.fmf' (Expected 0, got 0) :: [ 08:51:36 ] :: [ BEGIN ] :: Running 'git commit -m 'add_good'' tmt tests lint...........................................................Passed [main cd81896] add_good 1 file changed, 1 insertion(+) create mode 100644 good.fmf :: [ 08:51:38 ] :: [ PASS ] :: Command 'git commit -m 'add_good'' (Expected 0, got 0) :: [ 08:51:38 ] :: [ PASS ] :: File '/var/tmp/rlRun_LOG.1FNhDt36' should contain 'tmt tests lint.*Passed' :: [ 08:51:38 ] :: [ BEGIN ] :: Running 'echo summary: foo >> main.fmf' :: [ 08:51:38 ] :: [ PASS ] :: Command 'echo summary: foo >> main.fmf' (Expected 0, got 0) :: [ 08:51:38 ] :: [ BEGIN ] :: Running 'git commit -a -m 'modify_main'' tmt tests lint...........................................................Failed - hook id: tmt-tests-lint - exit code: 1 warn: /wrong: - 'foo' does not match any of the regexes: '^extra-' /wrong warn: /wrong: - 'foo' does not match any of the regexes: '^extra-' warn C000 key "foo" not recognized by schema /schemas/test, and does not match "^extra-" pattern warn C000 fmf node failed schema validation pass C001 summary key is set and is reasonably long fail T001 unknown key "foo" is used pass T002 test script is defined pass T003 directory path is absolute pass T004 test path '/tmp/tmp.I9OCzKvL9u' does exist skip T005 legacy relevancy not detected skip T006 legacy 'coverage' field not detected skip T007 not a manual test skip T008 not a manual test skip T009 library/file requirements not used :: [ 08:51:40 ] :: [ PASS ] :: Command 'git commit -a -m 'modify_main'' (Expected 1, got 1) :: [ 08:51:40 ] :: [ PASS ] :: File '/var/tmp/rlRun_LOG.96CCE5ZK' should contain 'tmt tests lint.*Failed' :: [ 08:51:40 ] :: [ PASS ] :: File '/var/tmp/rlRun_LOG.96CCE5ZK' should not contain '/good' :: [ 08:51:40 ] :: [ PASS ] :: File '/var/tmp/rlRun_LOG.96CCE5ZK' should contain '/wrong' :: [ 08:51:40 ] :: [ BEGIN ] :: Running 'mkdir tmt_root' :: [ 08:51:40 ] :: [ PASS ] :: Command 'mkdir tmt_root' (Expected 0, got 0) :: [ 08:51:40 ] :: [ BEGIN ] :: Running 'git mv .fmf/ tmt_root/.fmf/' :: [ 08:51:40 ] :: [ PASS ] :: Command 'git mv .fmf/ tmt_root/.fmf/' (Expected 0, got 0) :: [ 08:51:40 ] :: [ BEGIN ] :: Running 'git commit -m 'wrong_fmf_root'' [WARNING] Unstaged files detected. [INFO] Stashing unstaged files to /root/.cache/pre-commit/patch1779871900-139834. tmt tests lint...........................................................Failed - hook id: tmt-tests-lint - exit code: 2 Command 'git ls-files --error-unmatch /tmp/tmp.I9OCzKvL9u/./.fmf/version' returned 1. # stderr (2/2 lines) # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: pathspec '/tmp/tmp.I9OCzKvL9u/./.fmf/version' did not match any file(s) known to git Did you forget to 'git add'? # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] Restored changes from /root/.cache/pre-commit/patch1779871900-139834. :: [ 08:51:41 ] :: [ PASS ] :: Command 'git commit -m 'wrong_fmf_root'' (Expected 1, got 1) :: [ 08:51:41 ] :: [ PASS ] :: File '/var/tmp/rlRun_LOG.MS4uewGz' should contain 'tmt tests lint.*Failed' :: [ 08:51:41 ] :: [ BEGIN ] :: Running 'git add .pre-commit-config.yaml' :: [ 08:51:41 ] :: [ PASS ] :: Command 'git add .pre-commit-config.yaml' (Expected 0, got 0) :: [ 08:51:41 ] :: [ BEGIN ] :: Running 'git mv main.fmf tmt_root' :: [ 08:51:41 ] :: [ PASS ] :: Command 'git mv main.fmf tmt_root' (Expected 0, got 0) :: [ 08:51:41 ] :: [ BEGIN ] :: Running 'git commit -m 'pass different root'' [WARNING] Unstaged files detected. [INFO] Stashing unstaged files to /root/.cache/pre-commit/patch1779871901-139977. tmt tests lint...........................................................Passed [INFO] Restored changes from /root/.cache/pre-commit/patch1779871901-139977. [main c457116] pass different root 3 files changed, 1 insertion(+) rename {.fmf => tmt_root/.fmf}/version (100%) rename main.fmf => tmt_root/main.fmf (100%) :: [ 08:51:43 ] :: [ PASS ] :: Command 'git commit -m 'pass different root'' (Expected 0, got 0) :: [ 08:51:43 ] :: [ PASS ] :: File '/var/tmp/rlRun_LOG.GrtuzpM6' should contain 'tmt tests lint.*Passed' :: [ 08:51:43 ] :: [ BEGIN ] :: Running 'popd' /var/ARTIFACTS/work-advancedm608c7wg/plans/features/advanced/discover/default-0/tests/tests/precommit :: [ 08:51:43 ] :: [ PASS ] :: Command 'popd' (Expected 0, got 0) :: [ 08:51:43 ] :: [ BEGIN ] :: Removing tmp directory :: actually running 'rm -rf /tmp/tmp.I9OCzKvL9u' :: [ 08:51:43 ] :: [ PASS ] :: Removing tmp directory (Expected 0, got 0) :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Duration: 24s :: Assertions: 44 good, 0 bad :: RESULT: PASS (Hook: tmt-tests-lint) tmt-report-result: saving /Hook-tmt-tests-lint output /tmp/tmp.JyVnxQkdCR into /var/ARTIFACTS/work-advancedm608c7wg/plans/features/advanced/execute/data/guest/default-0/tests/precommit-16/data/Hook-tmt-tests-lint/output.txt tmt-report-result: adding to the result file /var/ARTIFACTS/work-advancedm608c7wg/plans/features/advanced/execute/data/guest/default-0/tests/precommit-16/data/tmt-report-results.yaml :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Hook: tmt-plans-lint :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ 08:51:43 ] :: [ BEGIN ] :: Creating tmp directory :: actually running 'tmp=$(mktemp -d)' :: [ 08:51:43 ] :: [ PASS ] :: Creating tmp directory (Expected 0, got 0) :: [ 08:51:43 ] :: [ BEGIN ] :: Running 'pushd /tmp/tmp.uNBFBV5yMc' /tmp/tmp.uNBFBV5yMc /var/ARTIFACTS/work-advancedm608c7wg/plans/features/advanced/discover/default-0/tests/tests/precommit :: [ 08:51:43 ] :: [ PASS ] :: Command 'pushd /tmp/tmp.uNBFBV5yMc' (Expected 0, got 0) :: [ 08:51:43 ] :: [ BEGIN ] :: Running 'tmt init' Initialized the fmf tree root '/tmp/tmp.uNBFBV5yMc/.fmf'. Use 'tmt init --template' with 'mini', 'base' or 'full' to create example content. Add tests, plans or stories with 'tmt test create', 'tmt plan create' or 'tmt story create'. :: [ 08:51:44 ] :: [ PASS ] :: Command 'tmt init' (Expected 0, got 0) :: [ 08:51:44 ] :: [ BEGIN ] :: Running 'git init' Initialized empty Git repository in /tmp/tmp.uNBFBV5yMc/.git/ :: [ 08:51:44 ] :: [ PASS ] :: Command 'git init' (Expected 0, got 0) :: [ 08:51:44 ] :: [ BEGIN ] :: Running 'git config --local user.name LZachar' :: [ 08:51:44 ] :: [ PASS ] :: Command 'git config --local user.name LZachar' (Expected 0, got 0) :: [ 08:51:44 ] :: [ BEGIN ] :: Running 'git config --local user.email lzachar@redhat.com' :: [ 08:51:44 ] :: [ PASS ] :: Command 'git config --local user.email lzachar@redhat.com' (Expected 0, got 0) :: [ 08:51:44 ] :: [ BEGIN ] :: Running 'cat .pre-commit-config.yaml' repos: - repo: /var/ARTIFACTS/work-advancedm608c7wg/plans/features/advanced/discover/default-0/tests/tests/precommit/../.. rev: "5793f160" hooks: - id: "tmt-plans-lint" :: [ 08:51:44 ] :: [ PASS ] :: Command 'cat .pre-commit-config.yaml' (Expected 0, got 0) :: [ 08:51:44 ] :: [ BEGIN ] :: Running 'pre-commit install' pre-commit installed at .git/hooks/pre-commit :: [ 08:51:45 ] :: [ PASS ] :: Command 'pre-commit install' (Expected 0, got 0) :: [ 08:51:45 ] :: [ PASS ] :: File '/var/tmp/rlRun_LOG.gsRcQcY2' should contain 'pre-commit installed' :: [ 08:51:45 ] :: [ BEGIN ] :: Running 'git add .pre-commit-config.yaml' :: [ 08:51:45 ] :: [ PASS ] :: Command 'git add .pre-commit-config.yaml' (Expected 0, got 0) :: [ 08:51:45 ] :: [ BEGIN ] :: Running 'git commit -m nothing_to_check' tmt plans lint.......................................(no files to check)Skipped [main (root-commit) a09a806] nothing_to_check 1 file changed, 5 insertions(+) create mode 100644 .pre-commit-config.yaml :: [ 08:51:45 ] :: [ PASS ] :: Command 'git commit -m nothing_to_check' (Expected 0, got 0) :: [ 08:51:45 ] :: [ PASS ] :: File '/var/tmp/rlRun_LOG.YopKxtMh' should contain 'tmt plans lint.*no files to check' :: [ 08:51:45 ] :: [ BEGIN ] :: Running 'echo -e 'execute: how: tmt' > main.fmf' :: [ 08:51:45 ] :: [ PASS ] :: Command 'echo -e 'execute: how: tmt' > main.fmf' (Expected 0, got 0) :: [ 08:51:45 ] :: [ BEGIN ] :: Running 'git add main.fmf' :: [ 08:51:45 ] :: [ PASS ] :: Command 'git add main.fmf' (Expected 0, got 0) :: [ 08:51:45 ] :: [ BEGIN ] :: Running 'git commit -m 'missing_fmf_root'' tmt plans lint...........................................................Failed - hook id: tmt-plans-lint - exit code: 2 Command 'git ls-files --error-unmatch /tmp/tmp.uNBFBV5yMc/./.fmf/version' returned 1. # stderr (2/2 lines) # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: pathspec '/tmp/tmp.uNBFBV5yMc/./.fmf/version' did not match any file(s) known to git Did you forget to 'git add'? # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :: [ 08:51:46 ] :: [ PASS ] :: Command 'git commit -m 'missing_fmf_root'' (Expected 1, got 1) :: [ 08:51:46 ] :: [ PASS ] :: File '/var/tmp/rlRun_LOG.phJXigyU' should contain 'tmt plans lint.*Failed' :: [ 08:51:46 ] :: [ BEGIN ] :: Running 'git add .fmf/version' :: [ 08:51:46 ] :: [ PASS ] :: Command 'git add .fmf/version' (Expected 0, got 0) :: [ 08:51:46 ] :: [ BEGIN ] :: Running 'git commit -m 'pass'' tmt plans lint...........................................................Passed [main 5f2b6ea] pass 2 files changed, 3 insertions(+) create mode 100644 .fmf/version create mode 100644 main.fmf :: [ 08:51:48 ] :: [ PASS ] :: Command 'git commit -m 'pass'' (Expected 0, got 0) :: [ 08:51:48 ] :: [ PASS ] :: File '/var/tmp/rlRun_LOG.MPWA5Sgh' should contain 'tmt plans lint.*Passed' :: [ 08:51:48 ] :: [ BEGIN ] :: Running 'echo foo: bar > wrong.fmf' :: [ 08:51:48 ] :: [ PASS ] :: Command 'echo foo: bar > wrong.fmf' (Expected 0, got 0) :: [ 08:51:48 ] :: [ BEGIN ] :: Running 'git add wrong.fmf' :: [ 08:51:48 ] :: [ PASS ] :: Command 'git add wrong.fmf' (Expected 0, got 0) :: [ 08:51:48 ] :: [ BEGIN ] :: Running 'git commit -m wrong' tmt plans lint...........................................................Failed - hook id: tmt-plans-lint - exit code: 1 warn: /wrong: - 'foo' does not match any of the regexes: '^extra-' /wrong warn: /wrong: - 'foo' does not match any of the regexes: '^extra-' warn C000 key "foo" not recognized by schema /schemas/plan, and does not match "^extra-" pattern warn C000 fmf node failed schema validation warn C001 summary key is missing fail P001 unknown key "foo" is used pass P002 execute step defined with "how" pass P003 execute step methods are all known skip P004 discover step is not defined skip P005 no remote fmf ids defined pass P006 phases have unique names pass P007 execute phase 'default-0' does not require specific guest skip P008 no environment files found pass P009 All step data is valid :: [ 08:51:50 ] :: [ PASS ] :: Command 'git commit -m wrong' (Expected 1, got 1) :: [ 08:51:50 ] :: [ PASS ] :: File '/var/tmp/rlRun_LOG.REAOABnj' should contain 'tmt plans lint.*Failed' :: [ 08:51:50 ] :: [ PASS ] :: File '/var/tmp/rlRun_LOG.REAOABnj' should contain 'fail .001 unknown key "foo" is used' :: [ 08:51:50 ] :: [ BEGIN ] :: Running 'git commit --no-verify -m wrong' [main 5a77b3d] wrong 1 file changed, 1 insertion(+) create mode 100644 wrong.fmf :: [ 08:51:50 ] :: [ PASS ] :: Command 'git commit --no-verify -m wrong' (Expected 0, got 0) :: [ 08:51:50 ] :: [ BEGIN ] :: Running 'echo summary: hello world > good.fmf' :: [ 08:51:50 ] :: [ PASS ] :: Command 'echo summary: hello world > good.fmf' (Expected 0, got 0) :: [ 08:51:50 ] :: [ BEGIN ] :: Running 'git add good.fmf' :: [ 08:51:50 ] :: [ PASS ] :: Command 'git add good.fmf' (Expected 0, got 0) :: [ 08:51:50 ] :: [ BEGIN ] :: Running 'git commit -m 'add_good'' tmt plans lint...........................................................Passed [main bc290ce] add_good 1 file changed, 1 insertion(+) create mode 100644 good.fmf :: [ 08:51:51 ] :: [ PASS ] :: Command 'git commit -m 'add_good'' (Expected 0, got 0) :: [ 08:51:51 ] :: [ PASS ] :: File '/var/tmp/rlRun_LOG.WzWp55kc' should contain 'tmt plans lint.*Passed' :: [ 08:51:51 ] :: [ BEGIN ] :: Running 'echo summary: foo >> main.fmf' :: [ 08:51:51 ] :: [ PASS ] :: Command 'echo summary: foo >> main.fmf' (Expected 0, got 0) :: [ 08:51:51 ] :: [ BEGIN ] :: Running 'git commit -a -m 'modify_main'' tmt plans lint...........................................................Failed - hook id: tmt-plans-lint - exit code: 1 warn: /wrong: - 'foo' does not match any of the regexes: '^extra-' /wrong warn: /wrong: - 'foo' does not match any of the regexes: '^extra-' warn C000 key "foo" not recognized by schema /schemas/plan, and does not match "^extra-" pattern warn C000 fmf node failed schema validation pass C001 summary key is set and is reasonably long fail P001 unknown key "foo" is used pass P002 execute step defined with "how" pass P003 execute step methods are all known skip P004 discover step is not defined skip P005 no remote fmf ids defined pass P006 phases have unique names pass P007 execute phase 'default-0' does not require specific guest skip P008 no environment files found pass P009 All step data is valid :: [ 08:51:53 ] :: [ PASS ] :: Command 'git commit -a -m 'modify_main'' (Expected 1, got 1) :: [ 08:51:53 ] :: [ PASS ] :: File '/var/tmp/rlRun_LOG.wg0QXS6O' should contain 'tmt plans lint.*Failed' :: [ 08:51:53 ] :: [ PASS ] :: File '/var/tmp/rlRun_LOG.wg0QXS6O' should not contain '/good' :: [ 08:51:53 ] :: [ PASS ] :: File '/var/tmp/rlRun_LOG.wg0QXS6O' should contain '/wrong' :: [ 08:51:53 ] :: [ BEGIN ] :: Running 'mkdir tmt_root' :: [ 08:51:53 ] :: [ PASS ] :: Command 'mkdir tmt_root' (Expected 0, got 0) :: [ 08:51:53 ] :: [ BEGIN ] :: Running 'git mv .fmf/ tmt_root/.fmf/' :: [ 08:51:53 ] :: [ PASS ] :: Command 'git mv .fmf/ tmt_root/.fmf/' (Expected 0, got 0) :: [ 08:51:53 ] :: [ BEGIN ] :: Running 'git commit -m 'wrong_fmf_root'' [WARNING] Unstaged files detected. [INFO] Stashing unstaged files to /root/.cache/pre-commit/patch1779871913-141202. tmt plans lint...........................................................Failed - hook id: tmt-plans-lint - exit code: 2 Command 'git ls-files --error-unmatch /tmp/tmp.uNBFBV5yMc/./.fmf/version' returned 1. # stderr (2/2 lines) # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: pathspec '/tmp/tmp.uNBFBV5yMc/./.fmf/version' did not match any file(s) known to git Did you forget to 'git add'? # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] Restored changes from /root/.cache/pre-commit/patch1779871913-141202. :: [ 08:51:55 ] :: [ PASS ] :: Command 'git commit -m 'wrong_fmf_root'' (Expected 1, got 1) :: [ 08:51:55 ] :: [ PASS ] :: File '/var/tmp/rlRun_LOG.iA3ESfRN' should contain 'tmt plans lint.*Failed' :: [ 08:51:55 ] :: [ BEGIN ] :: Running 'git add .pre-commit-config.yaml' :: [ 08:51:55 ] :: [ PASS ] :: Command 'git add .pre-commit-config.yaml' (Expected 0, got 0) :: [ 08:51:55 ] :: [ BEGIN ] :: Running 'git mv main.fmf tmt_root' :: [ 08:51:55 ] :: [ PASS ] :: Command 'git mv main.fmf tmt_root' (Expected 0, got 0) :: [ 08:51:55 ] :: [ BEGIN ] :: Running 'git commit -m 'pass different root'' [WARNING] Unstaged files detected. [INFO] Stashing unstaged files to /root/.cache/pre-commit/patch1779871915-141345. tmt plans lint...........................................................Passed [INFO] Restored changes from /root/.cache/pre-commit/patch1779871915-141345. [main 3de6049] pass different root 3 files changed, 1 insertion(+) rename {.fmf => tmt_root/.fmf}/version (100%) rename main.fmf => tmt_root/main.fmf (100%) :: [ 08:51:56 ] :: [ PASS ] :: Command 'git commit -m 'pass different root'' (Expected 0, got 0) :: [ 08:51:56 ] :: [ PASS ] :: File '/var/tmp/rlRun_LOG.SlDrH2vC' should contain 'tmt plans lint.*Passed' :: [ 08:51:56 ] :: [ BEGIN ] :: Running 'popd' /var/ARTIFACTS/work-advancedm608c7wg/plans/features/advanced/discover/default-0/tests/tests/precommit :: [ 08:51:56 ] :: [ PASS ] :: Command 'popd' (Expected 0, got 0) :: [ 08:51:56 ] :: [ BEGIN ] :: Removing tmp directory :: actually running 'rm -rf /tmp/tmp.uNBFBV5yMc' :: [ 08:51:56 ] :: [ PASS ] :: Removing tmp directory (Expected 0, got 0) :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Duration: 13s :: Assertions: 44 good, 0 bad :: RESULT: PASS (Hook: tmt-plans-lint) tmt-report-result: saving /Hook-tmt-plans-lint output /tmp/tmp.yCzwsGedbu into /var/ARTIFACTS/work-advancedm608c7wg/plans/features/advanced/execute/data/guest/default-0/tests/precommit-16/data/Hook-tmt-plans-lint/output.txt tmt-report-result: adding to the result file /var/ARTIFACTS/work-advancedm608c7wg/plans/features/advanced/execute/data/guest/default-0/tests/precommit-16/data/tmt-report-results.yaml :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Hook: tmt-stories-lint :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ 08:51:56 ] :: [ BEGIN ] :: Creating tmp directory :: actually running 'tmp=$(mktemp -d)' :: [ 08:51:56 ] :: [ PASS ] :: Creating tmp directory (Expected 0, got 0) :: [ 08:51:56 ] :: [ BEGIN ] :: Running 'pushd /tmp/tmp.A0ZdK3HefN' /tmp/tmp.A0ZdK3HefN /var/ARTIFACTS/work-advancedm608c7wg/plans/features/advanced/discover/default-0/tests/tests/precommit :: [ 08:51:56 ] :: [ PASS ] :: Command 'pushd /tmp/tmp.A0ZdK3HefN' (Expected 0, got 0) :: [ 08:51:56 ] :: [ BEGIN ] :: Running 'tmt init' Initialized the fmf tree root '/tmp/tmp.A0ZdK3HefN/.fmf'. Use 'tmt init --template' with 'mini', 'base' or 'full' to create example content. Add tests, plans or stories with 'tmt test create', 'tmt plan create' or 'tmt story create'. :: [ 08:51:58 ] :: [ PASS ] :: Command 'tmt init' (Expected 0, got 0) :: [ 08:51:58 ] :: [ BEGIN ] :: Running 'git init' Initialized empty Git repository in /tmp/tmp.A0ZdK3HefN/.git/ :: [ 08:51:58 ] :: [ PASS ] :: Command 'git init' (Expected 0, got 0) :: [ 08:51:58 ] :: [ BEGIN ] :: Running 'git config --local user.name LZachar' :: [ 08:51:58 ] :: [ PASS ] :: Command 'git config --local user.name LZachar' (Expected 0, got 0) :: [ 08:51:58 ] :: [ BEGIN ] :: Running 'git config --local user.email lzachar@redhat.com' :: [ 08:51:58 ] :: [ PASS ] :: Command 'git config --local user.email lzachar@redhat.com' (Expected 0, got 0) :: [ 08:51:58 ] :: [ BEGIN ] :: Running 'cat .pre-commit-config.yaml' repos: - repo: /var/ARTIFACTS/work-advancedm608c7wg/plans/features/advanced/discover/default-0/tests/tests/precommit/../.. rev: "5793f160" hooks: - id: "tmt-stories-lint" :: [ 08:51:58 ] :: [ PASS ] :: Command 'cat .pre-commit-config.yaml' (Expected 0, got 0) :: [ 08:51:58 ] :: [ BEGIN ] :: Running 'pre-commit install' pre-commit installed at .git/hooks/pre-commit :: [ 08:51:58 ] :: [ PASS ] :: Command 'pre-commit install' (Expected 0, got 0) :: [ 08:51:58 ] :: [ PASS ] :: File '/var/tmp/rlRun_LOG.wgjVsP2h' should contain 'pre-commit installed' :: [ 08:51:58 ] :: [ BEGIN ] :: Running 'git add .pre-commit-config.yaml' :: [ 08:51:58 ] :: [ PASS ] :: Command 'git add .pre-commit-config.yaml' (Expected 0, got 0) :: [ 08:51:58 ] :: [ BEGIN ] :: Running 'git commit -m nothing_to_check' tmt stories lint.....................................(no files to check)Skipped [main (root-commit) 7400194] nothing_to_check 1 file changed, 5 insertions(+) create mode 100644 .pre-commit-config.yaml :: [ 08:51:58 ] :: [ PASS ] :: Command 'git commit -m nothing_to_check' (Expected 0, got 0) :: [ 08:51:58 ] :: [ PASS ] :: File '/var/tmp/rlRun_LOG.8H1wVwLv' should contain 'tmt stories lint.*no files to check' :: [ 08:51:58 ] :: [ BEGIN ] :: Running 'echo 'story: whatever' > main.fmf' :: [ 08:51:58 ] :: [ PASS ] :: Command 'echo 'story: whatever' > main.fmf' (Expected 0, got 0) :: [ 08:51:58 ] :: [ BEGIN ] :: Running 'git add main.fmf' :: [ 08:51:58 ] :: [ PASS ] :: Command 'git add main.fmf' (Expected 0, got 0) :: [ 08:51:58 ] :: [ BEGIN ] :: Running 'git commit -m 'missing_fmf_root'' tmt stories lint.........................................................Failed - hook id: tmt-stories-lint - exit code: 2 Command 'git ls-files --error-unmatch /tmp/tmp.A0ZdK3HefN/./.fmf/version' returned 1. # stderr (2/2 lines) # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: pathspec '/tmp/tmp.A0ZdK3HefN/./.fmf/version' did not match any file(s) known to git Did you forget to 'git add'? # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :: [ 08:52:00 ] :: [ PASS ] :: Command 'git commit -m 'missing_fmf_root'' (Expected 1, got 1) :: [ 08:52:00 ] :: [ PASS ] :: File '/var/tmp/rlRun_LOG.9v3p2tru' should contain 'tmt stories lint.*Failed' :: [ 08:52:00 ] :: [ BEGIN ] :: Running 'git add .fmf/version' :: [ 08:52:00 ] :: [ PASS ] :: Command 'git add .fmf/version' (Expected 0, got 0) :: [ 08:52:00 ] :: [ BEGIN ] :: Running 'git commit -m 'pass'' tmt stories lint.........................................................Passed [main 1b44866] pass 2 files changed, 2 insertions(+) create mode 100644 .fmf/version create mode 100644 main.fmf :: [ 08:52:01 ] :: [ PASS ] :: Command 'git commit -m 'pass'' (Expected 0, got 0) :: [ 08:52:01 ] :: [ PASS ] :: File '/var/tmp/rlRun_LOG.iWdY7clB' should contain 'tmt stories lint.*Passed' :: [ 08:52:01 ] :: [ BEGIN ] :: Running 'echo foo: bar > wrong.fmf' :: [ 08:52:01 ] :: [ PASS ] :: Command 'echo foo: bar > wrong.fmf' (Expected 0, got 0) :: [ 08:52:01 ] :: [ BEGIN ] :: Running 'git add wrong.fmf' :: [ 08:52:01 ] :: [ PASS ] :: Command 'git add wrong.fmf' (Expected 0, got 0) :: [ 08:52:01 ] :: [ BEGIN ] :: Running 'git commit -m wrong' tmt stories lint.........................................................Failed - hook id: tmt-stories-lint - exit code: 1 warn: /wrong: - 'foo' does not match any of the regexes: '^extra-' /wrong warn: /wrong: - 'foo' does not match any of the regexes: '^extra-' warn C000 key "foo" not recognized by schema /schemas/story, and does not match "^extra-" pattern warn C000 fmf node failed schema validation warn C001 summary key is missing fail S001 unknown key "foo" is used pass S002 story key is defined :: [ 08:52:03 ] :: [ PASS ] :: Command 'git commit -m wrong' (Expected 1, got 1) :: [ 08:52:03 ] :: [ PASS ] :: File '/var/tmp/rlRun_LOG.kZfeIfy2' should contain 'tmt stories lint.*Failed' :: [ 08:52:03 ] :: [ PASS ] :: File '/var/tmp/rlRun_LOG.kZfeIfy2' should contain 'fail .001 unknown key "foo" is used' :: [ 08:52:03 ] :: [ BEGIN ] :: Running 'git commit --no-verify -m wrong' [main c4ca076] wrong 1 file changed, 1 insertion(+) create mode 100644 wrong.fmf :: [ 08:52:03 ] :: [ PASS ] :: Command 'git commit --no-verify -m wrong' (Expected 0, got 0) :: [ 08:52:03 ] :: [ BEGIN ] :: Running 'echo summary: hello world > good.fmf' :: [ 08:52:03 ] :: [ PASS ] :: Command 'echo summary: hello world > good.fmf' (Expected 0, got 0) :: [ 08:52:03 ] :: [ BEGIN ] :: Running 'git add good.fmf' :: [ 08:52:03 ] :: [ PASS ] :: Command 'git add good.fmf' (Expected 0, got 0) :: [ 08:52:03 ] :: [ BEGIN ] :: Running 'git commit -m 'add_good'' tmt stories lint.........................................................Passed [main 6bd48d5] add_good 1 file changed, 1 insertion(+) create mode 100644 good.fmf :: [ 08:52:04 ] :: [ PASS ] :: Command 'git commit -m 'add_good'' (Expected 0, got 0) :: [ 08:52:04 ] :: [ PASS ] :: File '/var/tmp/rlRun_LOG.UDHIQwO0' should contain 'tmt stories lint.*Passed' :: [ 08:52:05 ] :: [ BEGIN ] :: Running 'echo summary: foo >> main.fmf' :: [ 08:52:05 ] :: [ PASS ] :: Command 'echo summary: foo >> main.fmf' (Expected 0, got 0) :: [ 08:52:05 ] :: [ BEGIN ] :: Running 'git commit -a -m 'modify_main'' tmt stories lint.........................................................Failed - hook id: tmt-stories-lint - exit code: 1 warn: /wrong: - 'foo' does not match any of the regexes: '^extra-' /wrong warn: /wrong: - 'foo' does not match any of the regexes: '^extra-' warn C000 key "foo" not recognized by schema /schemas/story, and does not match "^extra-" pattern warn C000 fmf node failed schema validation pass C001 summary key is set and is reasonably long fail S001 unknown key "foo" is used pass S002 story key is defined :: [ 08:52:06 ] :: [ PASS ] :: Command 'git commit -a -m 'modify_main'' (Expected 1, got 1) :: [ 08:52:06 ] :: [ PASS ] :: File '/var/tmp/rlRun_LOG.ViNqew2d' should contain 'tmt stories lint.*Failed' :: [ 08:52:06 ] :: [ PASS ] :: File '/var/tmp/rlRun_LOG.ViNqew2d' should not contain '/good' :: [ 08:52:06 ] :: [ PASS ] :: File '/var/tmp/rlRun_LOG.ViNqew2d' should contain '/wrong' :: [ 08:52:06 ] :: [ BEGIN ] :: Running 'mkdir tmt_root' :: [ 08:52:06 ] :: [ PASS ] :: Command 'mkdir tmt_root' (Expected 0, got 0) :: [ 08:52:06 ] :: [ BEGIN ] :: Running 'git mv .fmf/ tmt_root/.fmf/' :: [ 08:52:06 ] :: [ PASS ] :: Command 'git mv .fmf/ tmt_root/.fmf/' (Expected 0, got 0) :: [ 08:52:06 ] :: [ BEGIN ] :: Running 'git commit -m 'wrong_fmf_root'' [WARNING] Unstaged files detected. [INFO] Stashing unstaged files to /root/.cache/pre-commit/patch1779871926-142571. tmt stories lint.........................................................Failed - hook id: tmt-stories-lint - exit code: 2 Command 'git ls-files --error-unmatch /tmp/tmp.A0ZdK3HefN/./.fmf/version' returned 1. # stderr (2/2 lines) # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: pathspec '/tmp/tmp.A0ZdK3HefN/./.fmf/version' did not match any file(s) known to git Did you forget to 'git add'? # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] Restored changes from /root/.cache/pre-commit/patch1779871926-142571. :: [ 08:52:08 ] :: [ PASS ] :: Command 'git commit -m 'wrong_fmf_root'' (Expected 1, got 1) :: [ 08:52:08 ] :: [ PASS ] :: File '/var/tmp/rlRun_LOG.G1K9nHry' should contain 'tmt stories lint.*Failed' :: [ 08:52:08 ] :: [ BEGIN ] :: Running 'git add .pre-commit-config.yaml' :: [ 08:52:08 ] :: [ PASS ] :: Command 'git add .pre-commit-config.yaml' (Expected 0, got 0) :: [ 08:52:08 ] :: [ BEGIN ] :: Running 'git mv main.fmf tmt_root' :: [ 08:52:08 ] :: [ PASS ] :: Command 'git mv main.fmf tmt_root' (Expected 0, got 0) :: [ 08:52:08 ] :: [ BEGIN ] :: Running 'git commit -m 'pass different root'' [WARNING] Unstaged files detected. [INFO] Stashing unstaged files to /root/.cache/pre-commit/patch1779871928-142714. tmt stories lint.........................................................Passed [INFO] Restored changes from /root/.cache/pre-commit/patch1779871928-142714. [main d397243] pass different root 3 files changed, 1 insertion(+) rename {.fmf => tmt_root/.fmf}/version (100%) rename main.fmf => tmt_root/main.fmf (100%) :: [ 08:52:09 ] :: [ PASS ] :: Command 'git commit -m 'pass different root'' (Expected 0, got 0) :: [ 08:52:09 ] :: [ PASS ] :: File '/var/tmp/rlRun_LOG.WJE9FqfY' should contain 'tmt stories lint.*Passed' :: [ 08:52:09 ] :: [ BEGIN ] :: Running 'popd' /var/ARTIFACTS/work-advancedm608c7wg/plans/features/advanced/discover/default-0/tests/tests/precommit :: [ 08:52:09 ] :: [ PASS ] :: Command 'popd' (Expected 0, got 0) :: [ 08:52:09 ] :: [ BEGIN ] :: Removing tmp directory :: actually running 'rm -rf /tmp/tmp.A0ZdK3HefN' :: [ 08:52:09 ] :: [ PASS ] :: Removing tmp directory (Expected 0, got 0) :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Duration: 13s :: Assertions: 44 good, 0 bad :: RESULT: PASS (Hook: tmt-stories-lint) tmt-report-result: saving /Hook-tmt-stories-lint output /tmp/tmp.PIay6h0T2Y into /var/ARTIFACTS/work-advancedm608c7wg/plans/features/advanced/execute/data/guest/default-0/tests/precommit-16/data/Hook-tmt-stories-lint/output.txt tmt-report-result: adding to the result file /var/ARTIFACTS/work-advancedm608c7wg/plans/features/advanced/execute/data/guest/default-0/tests/precommit-16/data/tmt-report-results.yaml :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Hook: tmt-lint :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ 08:52:09 ] :: [ BEGIN ] :: Creating tmp directory :: actually running 'tmp=$(mktemp -d)' :: [ 08:52:09 ] :: [ PASS ] :: Creating tmp directory (Expected 0, got 0) :: [ 08:52:09 ] :: [ BEGIN ] :: Running 'pushd /tmp/tmp.9A9sIPjfCU' /tmp/tmp.9A9sIPjfCU /var/ARTIFACTS/work-advancedm608c7wg/plans/features/advanced/discover/default-0/tests/tests/precommit :: [ 08:52:09 ] :: [ PASS ] :: Command 'pushd /tmp/tmp.9A9sIPjfCU' (Expected 0, got 0) :: [ 08:52:09 ] :: [ BEGIN ] :: Running 'tmt init' Initialized the fmf tree root '/tmp/tmp.9A9sIPjfCU/.fmf'. Use 'tmt init --template' with 'mini', 'base' or 'full' to create example content. Add tests, plans or stories with 'tmt test create', 'tmt plan create' or 'tmt story create'. :: [ 08:52:11 ] :: [ PASS ] :: Command 'tmt init' (Expected 0, got 0) :: [ 08:52:11 ] :: [ BEGIN ] :: Running 'git init' Initialized empty Git repository in /tmp/tmp.9A9sIPjfCU/.git/ :: [ 08:52:11 ] :: [ PASS ] :: Command 'git init' (Expected 0, got 0) :: [ 08:52:11 ] :: [ BEGIN ] :: Running 'git config --local user.name LZachar' :: [ 08:52:11 ] :: [ PASS ] :: Command 'git config --local user.name LZachar' (Expected 0, got 0) :: [ 08:52:11 ] :: [ BEGIN ] :: Running 'git config --local user.email lzachar@redhat.com' :: [ 08:52:11 ] :: [ PASS ] :: Command 'git config --local user.email lzachar@redhat.com' (Expected 0, got 0) :: [ 08:52:11 ] :: [ BEGIN ] :: Running 'cat .pre-commit-config.yaml' repos: - repo: /var/ARTIFACTS/work-advancedm608c7wg/plans/features/advanced/discover/default-0/tests/tests/precommit/../.. rev: "5793f160" hooks: - id: "tmt-lint" :: [ 08:52:11 ] :: [ PASS ] :: Command 'cat .pre-commit-config.yaml' (Expected 0, got 0) :: [ 08:52:11 ] :: [ BEGIN ] :: Running 'pre-commit install' pre-commit installed at .git/hooks/pre-commit :: [ 08:52:11 ] :: [ PASS ] :: Command 'pre-commit install' (Expected 0, got 0) :: [ 08:52:11 ] :: [ PASS ] :: File '/var/tmp/rlRun_LOG.HUGEkgZJ' should contain 'pre-commit installed' :: [ 08:52:11 ] :: [ BEGIN ] :: Running 'git add .pre-commit-config.yaml' :: [ 08:52:11 ] :: [ PASS ] :: Command 'git add .pre-commit-config.yaml' (Expected 0, got 0) :: [ 08:52:11 ] :: [ BEGIN ] :: Running 'git commit -m nothing_to_check' tmt lint.............................................(no files to check)Skipped [main (root-commit) acd62e2] nothing_to_check 1 file changed, 5 insertions(+) create mode 100644 .pre-commit-config.yaml :: [ 08:52:11 ] :: [ PASS ] :: Command 'git commit -m nothing_to_check' (Expected 0, got 0) :: [ 08:52:11 ] :: [ PASS ] :: File '/var/tmp/rlRun_LOG.1hPoPsVe' should contain 'tmt lint.*no files to check' :: [ 08:52:11 ] :: [ BEGIN ] :: Running 'echo 'test: echo' > main.fmf' :: [ 08:52:11 ] :: [ PASS ] :: Command 'echo 'test: echo' > main.fmf' (Expected 0, got 0) :: [ 08:52:11 ] :: [ BEGIN ] :: Running 'git add main.fmf' :: [ 08:52:11 ] :: [ PASS ] :: Command 'git add main.fmf' (Expected 0, got 0) :: [ 08:52:11 ] :: [ BEGIN ] :: Running 'git commit -m 'missing_fmf_root'' tmt lint.................................................................Failed - hook id: tmt-lint - exit code: 2 Command 'git ls-files --error-unmatch /tmp/tmp.9A9sIPjfCU/./.fmf/version' returned 1. # stderr (2/2 lines) # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: pathspec '/tmp/tmp.9A9sIPjfCU/./.fmf/version' did not match any file(s) known to git Did you forget to 'git add'? # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :: [ 08:52:13 ] :: [ PASS ] :: Command 'git commit -m 'missing_fmf_root'' (Expected 1, got 1) :: [ 08:52:13 ] :: [ PASS ] :: File '/var/tmp/rlRun_LOG.WQk3yx1D' should contain 'tmt lint.*Failed' :: [ 08:52:13 ] :: [ BEGIN ] :: Running 'git add .fmf/version' :: [ 08:52:13 ] :: [ PASS ] :: Command 'git add .fmf/version' (Expected 0, got 0) :: [ 08:52:13 ] :: [ BEGIN ] :: Running 'git commit -m 'pass'' tmt lint.................................................................Passed [main 83431c4] pass 2 files changed, 2 insertions(+) create mode 100644 .fmf/version create mode 100644 main.fmf :: [ 08:52:14 ] :: [ PASS ] :: Command 'git commit -m 'pass'' (Expected 0, got 0) :: [ 08:52:14 ] :: [ PASS ] :: File '/var/tmp/rlRun_LOG.hmTPzauh' should contain 'tmt lint.*Passed' :: [ 08:52:14 ] :: [ BEGIN ] :: Running 'echo foo: bar > wrong.fmf' :: [ 08:52:14 ] :: [ PASS ] :: Command 'echo foo: bar > wrong.fmf' (Expected 0, got 0) :: [ 08:52:14 ] :: [ BEGIN ] :: Running 'git add wrong.fmf' :: [ 08:52:14 ] :: [ PASS ] :: Command 'git add wrong.fmf' (Expected 0, got 0) :: [ 08:52:14 ] :: [ BEGIN ] :: Running 'git commit -m wrong' tmt lint.................................................................Failed - hook id: tmt-lint - exit code: 1 warn: /wrong: - 'foo' does not match any of the regexes: '^extra-' /wrong warn: /wrong: - 'foo' does not match any of the regexes: '^extra-' warn C000 key "foo" not recognized by schema /schemas/test, and does not match "^extra-" pattern warn C000 fmf node failed schema validation warn C001 summary key is missing fail T001 unknown key "foo" is used pass T002 test script is defined pass T003 directory path is absolute pass T004 test path '/tmp/tmp.9A9sIPjfCU' does exist skip T005 legacy relevancy not detected skip T006 legacy 'coverage' field not detected skip T007 not a manual test skip T008 not a manual test skip T009 library/file requirements not used :: [ 08:52:16 ] :: [ PASS ] :: Command 'git commit -m wrong' (Expected 1, got 1) :: [ 08:52:16 ] :: [ PASS ] :: File '/var/tmp/rlRun_LOG.ER0jkepA' should contain 'tmt lint.*Failed' :: [ 08:52:16 ] :: [ PASS ] :: File '/var/tmp/rlRun_LOG.ER0jkepA' should contain 'fail .001 unknown key "foo" is used' :: [ 08:52:16 ] :: [ BEGIN ] :: Running 'git commit --no-verify -m wrong' [main a0fca34] wrong 1 file changed, 1 insertion(+) create mode 100644 wrong.fmf :: [ 08:52:16 ] :: [ PASS ] :: Command 'git commit --no-verify -m wrong' (Expected 0, got 0) :: [ 08:52:16 ] :: [ BEGIN ] :: Running 'echo summary: hello world > good.fmf' :: [ 08:52:16 ] :: [ PASS ] :: Command 'echo summary: hello world > good.fmf' (Expected 0, got 0) :: [ 08:52:16 ] :: [ BEGIN ] :: Running 'git add good.fmf' :: [ 08:52:16 ] :: [ PASS ] :: Command 'git add good.fmf' (Expected 0, got 0) :: [ 08:52:16 ] :: [ BEGIN ] :: Running 'git commit -m 'add_good'' tmt lint.................................................................Passed [main ec84c06] add_good 1 file changed, 1 insertion(+) create mode 100644 good.fmf :: [ 08:52:17 ] :: [ PASS ] :: Command 'git commit -m 'add_good'' (Expected 0, got 0) :: [ 08:52:17 ] :: [ PASS ] :: File '/var/tmp/rlRun_LOG.iurTw1S8' should contain 'tmt lint.*Passed' :: [ 08:52:17 ] :: [ BEGIN ] :: Running 'echo summary: foo >> main.fmf' :: [ 08:52:17 ] :: [ PASS ] :: Command 'echo summary: foo >> main.fmf' (Expected 0, got 0) :: [ 08:52:17 ] :: [ BEGIN ] :: Running 'git commit -a -m 'modify_main'' tmt lint.................................................................Failed - hook id: tmt-lint - exit code: 1 warn: /wrong: - 'foo' does not match any of the regexes: '^extra-' /wrong warn: /wrong: - 'foo' does not match any of the regexes: '^extra-' warn C000 key "foo" not recognized by schema /schemas/test, and does not match "^extra-" pattern warn C000 fmf node failed schema validation pass C001 summary key is set and is reasonably long fail T001 unknown key "foo" is used pass T002 test script is defined pass T003 directory path is absolute pass T004 test path '/tmp/tmp.9A9sIPjfCU' does exist skip T005 legacy relevancy not detected skip T006 legacy 'coverage' field not detected skip T007 not a manual test skip T008 not a manual test skip T009 library/file requirements not used :: [ 08:52:19 ] :: [ PASS ] :: Command 'git commit -a -m 'modify_main'' (Expected 1, got 1) :: [ 08:52:19 ] :: [ PASS ] :: File '/var/tmp/rlRun_LOG.LbUoWdjL' should contain 'tmt lint.*Failed' :: [ 08:52:19 ] :: [ PASS ] :: File '/var/tmp/rlRun_LOG.LbUoWdjL' should not contain '/good' :: [ 08:52:19 ] :: [ PASS ] :: File '/var/tmp/rlRun_LOG.LbUoWdjL' should contain '/wrong' :: [ 08:52:19 ] :: [ BEGIN ] :: Running 'mkdir tmt_root' :: [ 08:52:19 ] :: [ PASS ] :: Command 'mkdir tmt_root' (Expected 0, got 0) :: [ 08:52:19 ] :: [ BEGIN ] :: Running 'git mv .fmf/ tmt_root/.fmf/' :: [ 08:52:19 ] :: [ PASS ] :: Command 'git mv .fmf/ tmt_root/.fmf/' (Expected 0, got 0) :: [ 08:52:19 ] :: [ BEGIN ] :: Running 'git commit -m 'wrong_fmf_root'' [WARNING] Unstaged files detected. [INFO] Stashing unstaged files to /root/.cache/pre-commit/patch1779871939-143939. tmt lint.................................................................Failed - hook id: tmt-lint - exit code: 2 Command 'git ls-files --error-unmatch /tmp/tmp.9A9sIPjfCU/./.fmf/version' returned 1. # stderr (2/2 lines) # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: pathspec '/tmp/tmp.9A9sIPjfCU/./.fmf/version' did not match any file(s) known to git Did you forget to 'git add'? # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] Restored changes from /root/.cache/pre-commit/patch1779871939-143939. :: [ 08:52:20 ] :: [ PASS ] :: Command 'git commit -m 'wrong_fmf_root'' (Expected 1, got 1) :: [ 08:52:20 ] :: [ PASS ] :: File '/var/tmp/rlRun_LOG.Dk7J4ALJ' should contain 'tmt lint.*Failed' :: [ 08:52:20 ] :: [ BEGIN ] :: Running 'git add .pre-commit-config.yaml' :: [ 08:52:20 ] :: [ PASS ] :: Command 'git add .pre-commit-config.yaml' (Expected 0, got 0) :: [ 08:52:20 ] :: [ BEGIN ] :: Running 'git mv main.fmf tmt_root' :: [ 08:52:20 ] :: [ PASS ] :: Command 'git mv main.fmf tmt_root' (Expected 0, got 0) :: [ 08:52:20 ] :: [ BEGIN ] :: Running 'git commit -m 'pass different root'' [WARNING] Unstaged files detected. [INFO] Stashing unstaged files to /root/.cache/pre-commit/patch1779871941-144082. tmt lint.................................................................Passed [INFO] Restored changes from /root/.cache/pre-commit/patch1779871941-144082. [main a39650e] pass different root 3 files changed, 1 insertion(+) rename {.fmf => tmt_root/.fmf}/version (100%) rename main.fmf => tmt_root/main.fmf (100%) :: [ 08:52:22 ] :: [ PASS ] :: Command 'git commit -m 'pass different root'' (Expected 0, got 0) :: [ 08:52:22 ] :: [ PASS ] :: File '/var/tmp/rlRun_LOG.GyKJhiCv' should contain 'tmt lint.*Passed' :: [ 08:52:22 ] :: [ BEGIN ] :: Running 'popd' /var/ARTIFACTS/work-advancedm608c7wg/plans/features/advanced/discover/default-0/tests/tests/precommit :: [ 08:52:22 ] :: [ PASS ] :: Command 'popd' (Expected 0, got 0) :: [ 08:52:22 ] :: [ BEGIN ] :: Removing tmp directory :: actually running 'rm -rf /tmp/tmp.9A9sIPjfCU' :: [ 08:52:22 ] :: [ PASS ] :: Removing tmp directory (Expected 0, got 0) :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Duration: 13s :: Assertions: 44 good, 0 bad :: RESULT: PASS (Hook: tmt-lint) tmt-report-result: saving /Hook-tmt-lint output /tmp/tmp.fXU3i0rwZG into /var/ARTIFACTS/work-advancedm608c7wg/plans/features/advanced/execute/data/guest/default-0/tests/precommit-16/data/Hook-tmt-lint/output.txt tmt-report-result: adding to the result file /var/ARTIFACTS/work-advancedm608c7wg/plans/features/advanced/execute/data/guest/default-0/tests/precommit-16/data/tmt-report-results.yaml :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: /tests/precommit :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ 08:52:22 ] :: [ LOG ] :: Phases fingerprint: UTc6CYxw :: [ 08:52:22 ] :: [ LOG ] :: Asserts fingerprint: xxD3VV/3 File '/var/ARTIFACTS/work-advancedm608c7wg/plans/features/advanced/execute/data/guest/default-0/tests/precommit-16/journal.xml' already stored in '/var/ARTIFACTS/work-advancedm608c7wg/plans/features/advanced/execute/data/guest/default-0/tests/precommit-16'. :: [ 08:52:22 ] :: [ INFO ] :: Deleting rlRun_LOG file(s) :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Duration: 64s :: Phases: 5 good, 0 bad :: OVERALL RESULT: PASS (/tests/precommit)