Skip to content
Myr

Change full path tests to be more resilient

Before adoption: this commit came in with the history the project adopted, so no landing records it.

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

authored by Thayne McCombs · committed by Thayne McCombs · parent d991beb · Browse files · 1 file+2 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Trailers

  • Fixes: #1181

Diff stats

1 file+2 added−2 removed

  • tests:+2 added−2 removed

1 file+2 added−2 removed

modified:tests/tests.rs+2 added-2 removed
261 unmodified lines
262fn test_and_plus_full_path() {263 let te = TestEnv::new(DEFAULT_DIRS, AND_EXTRA_FILES);264265 te.assert_output(266 &["three", "--full-path", "--and", "foo", "--and", "dir"],266 &["three", "--full-path", "--and", "_foo", "--and", "/dir"],267 "one/two/three/directory_foo/",268 );269270 te.assert_output(271 &["three", "--full-path", "--and", "two", "--and", "dir"],271 &["three", "--full-path", "--and", "/two", "--and", "/dir"],272 "one/two/three/directory_foo/",273 );274}275
2149 unmodified lines