tmt icon indicating copy to clipboard operation
tmt copied to clipboard

Boundaries for copying files

Open lukaszachy opened this issue 2 years ago • 1 comments

Test /tests/discover/no-git-needed uses tmt --root tests in repo like

repo
├── foo
├── .git
└── tests
    ├── .fmf

For discover -h fmf --sync-repo is assumed that foo file (and .git) is copied. Is that correct though? When one specifies 'root' explicitly, shouldn't tmt stop at fmf root boundary?

In this test case I'd say there is no git to copy (it is parent of 'tests' directory and by --root tests tmt is forbidden to look above it.

lukaszachy avatar Jan 04 '23 17:01 lukaszachy

As discussed it should be clarified in the documentation how does discover behave when:

  • fmf root is the same as git root
  • fmf root is a child of git root

thrix avatar May 13 '25 09:05 thrix