summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xautomated/linux/fio-test/fio-test.sh40
1 files changed, 22 insertions, 18 deletions
diff --git a/automated/linux/fio-test/fio-test.sh b/automated/linux/fio-test/fio-test.sh
index fa91af2..cdbc23f 100755
--- a/automated/linux/fio-test/fio-test.sh
+++ b/automated/linux/fio-test/fio-test.sh
@@ -37,24 +37,28 @@ fio_build_install() {
}
install() {
- dist_name
- # shellcheck disable=SC2154
- case "${dist}" in
- debian|ubuntu)
- pkgs="fio"
- install_deps "${pkgs}" "${SKIP_INSTALL}"
- ;;
- fedora|centos)
- pkgs="libaio-devel gcc tar wget"
- install_deps "${pkgs}" "${SKIP_INSTALL}"
- fio_build_install
- ;;
- # When build do not have package manager
- # Assume development tools pre-installed
- *)
- fio_build_install
- ;;
- esac
+ if which fio; then
+ info_msg "fio has been already installed"
+ else
+ dist_name
+ # shellcheck disable=SC2154
+ case "${dist}" in
+ debian|ubuntu)
+ pkgs="fio"
+ install_deps "${pkgs}" "${SKIP_INSTALL}"
+ ;;
+ fedora|centos)
+ pkgs="libaio-devel gcc tar wget"
+ install_deps "${pkgs}" "${SKIP_INSTALL}"
+ fio_build_install
+ ;;
+ # When build do not have package manager
+ # Assume development tools pre-installed
+ *)
+ fio_build_install
+ ;;
+ esac
+ fi
}
fio_test() {