Fix check for selecting plans during tmt run
The test was confused by the directory path displayed
during the discover step.
@@ -36,8 +36,8 @@ rlJournalStart
rlPhaseStartTest "tmt run plan $name <name>"
tmt='tmt run -r discover'
rlRun "$tmt plan $name core | tee $output"
- rlAssertGrep "/plans/features/core" $output
- rlAssertNotGrep "/plans/features/basic" $output
+ rlAssertGrep "^/plans/features/core" $output
+ rlAssertNotGrep "^/plans/features/basic" $output
rlRun "$tmt plan $name non-existent | tee $output" 2
rlAssertGrep "No plans found." $output
rlPhaseEnd
