diff options
| author | John Levon <john.levon@joyent.com> | 2020-04-09 09:26:29 -0700 |
|---|---|---|
| committer | John Levon <john.levon@joyent.com> | 2020-04-10 03:17:53 -0700 |
| commit | 2d43002e153b12554804eace495c8ecfa0b88f52 (patch) | |
| tree | a97b09d7d9bc3a411abc3793b09d4ce3ea780bf6 | |
| parent | a16250662fca1775384c611194385daf6ce8f186 (diff) | |
| download | illumos-joyent-2d43002e153b12554804eace495c8ecfa0b88f52.tar.gz | |
12495 findtest is flaky
Reviewed by: Robert Mustacchi <rm@fingolfin.org>
Reviewed by: Andy Stormont <astormont@racktopsystems.com>
Approved by: Richard Lowe <richlowe@richlowe.net>
| -rw-r--r-- | usr/src/test/util-tests/tests/find/findtest.ksh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/usr/src/test/util-tests/tests/find/findtest.ksh b/usr/src/test/util-tests/tests/find/findtest.ksh index 9e321fb664..0eb5c0efd4 100644 --- a/usr/src/test/util-tests/tests/find/findtest.ksh +++ b/usr/src/test/util-tests/tests/find/findtest.ksh @@ -25,9 +25,13 @@ unalias -a find_prog=/usr/bin/find find_prog_xpg4=/usr/xpg4/bin/find -find_dir="$(mktemp -d -p /tmp/)" find_exit=0 +# make sure we don't end in 1 or 2, which breaks the tests +find_dir=/tmp/findtest.$$.dir + +mkdir $find_dir + testfind() { exp=$1 |
