Skip to content

Commit

Permalink
use single case for both Linux and MacOS
Browse files Browse the repository at this point in the history
Signed-off-by: lugi0 <[email protected]>
  • Loading branch information
lugi0 committed Jun 12, 2024
1 parent 1ab4ddb commit a5eca98
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions ods_ci/run_robot_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -360,14 +360,14 @@ if [[ ! -d "${TEST_ARTIFACT_DIR}" ]]; then
fi
if ! ${SUBFOLDER}; then
case "$(uname -s)" in
Darwin)
# shellcheck disable=SC2046
TEST_ARTIFACT_DIR=$(mktemp -d -t ods-ci-$(date +%Y-%m-%d-%H-%M)-XXXXXXXXXX) -p "${TEST_ARTIFACT_DIR}"
;;
Linux)
# shellcheck disable=SC2046
TEST_ARTIFACT_DIR=$(mktemp -d -p "${TEST_ARTIFACT_DIR}" -t ods-ci-$(date +%Y-%m-%d-%H-%M)-XXXXXXXXXX)
;;
Darwin | Linux)
# shellcheck disable=SC2046
echo "Currently using the same mktemp command on Linux and MacOS"
TEST_ARTIFACT_DIR=$(mktemp -d -p "${TEST_ARTIFACT_DIR}" -t ods-ci-$(date +%Y-%m-%d-%H-%M)-XXXXXXXXXX)
;;
*)
echo "Unrecognized OS"
;;
esac
fi

Expand Down

0 comments on commit a5eca98

Please sign in to comment.