From e5c541a6c70df2548bbaa19fa43a7dbebe4b637a Mon Sep 17 00:00:00 2001 From: Robert Mustacchi Date: Sat, 21 Mar 2020 13:02:45 +0000 Subject: 12425 /opt/util-tests/bin/utiltest needs default run file handling Reviewed by: Toomas Soome Reviewed by: Alexander Pyhalov Approved by: Dan McDonald --- usr/src/test/util-tests/cmd/utiltest.ksh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/usr/src/test/util-tests/cmd/utiltest.ksh b/usr/src/test/util-tests/cmd/utiltest.ksh index e701aeb854..01f365cde9 100644 --- a/usr/src/test/util-tests/cmd/utiltest.ksh +++ b/usr/src/test/util-tests/cmd/utiltest.ksh @@ -37,8 +37,10 @@ function find_runfile distro=openindiana elif [[ 0 -ne $(grep -c OmniOS /etc/release 2>/dev/null) ]]; then distro=omnios - elif [[ -f $MY_TESTS/runfiles/default.run ]]; then - # optional catch-all + fi + + if [[ ! -f $MY_TESTS/runfiles/$distro.run ]] && \ + [[ -f $MY_TESTS/runfiles/default.run ]]; then distro=default fi -- cgit v1.2.3