Change full path tests to be more resilient

Use patterns that won't conflict with randomly generated portion of
temporary directory

Fixes: #1181
This commit is contained in:
Thayne McCombs 2022-12-01 21:59:53 -07:00
parent d991beb942
commit 0a575763a1
1 changed files with 2 additions and 2 deletions

View File

@ -263,12 +263,12 @@ fn test_and_plus_full_path() {
let te = TestEnv::new(DEFAULT_DIRS, AND_EXTRA_FILES);
te.assert_output(
&["three", "--full-path", "--and", "foo", "--and", "dir"],
&["three", "--full-path", "--and", "_foo", "--and", "/dir"],
"one/two/three/directory_foo/",
);
te.assert_output(
&["three", "--full-path", "--and", "two", "--and", "dir"],
&["three", "--full-path", "--and", "/two", "--and", "/dir"],
"one/two/three/directory_foo/",
);
}