Commit d5d199cf authored by Chen Wang's avatar Chen Wang Committed by Jim Harris
Browse files

test/fio: update the path of fio binary



Get the path of fio binary dynamically.

Change-Id: Ieb29bdfec33716828339a60e67dfe786e8ad278a
Signed-off-by: default avatarChen Wang <chenx.wang@intel.com>
Reviewed-on: https://review.gerrithub.io/423057


Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: default avatarBen Walker <benjamin.walker@intel.com>
Reviewed-by: default avatarJim Harris <james.r.harris@intel.com>
parent 6058327b
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -65,7 +65,12 @@ def main():
    print("Found devices: ", devices)

    configure_devices(devices)
    fio_executable = '/usr/bin/fio'
    try:
            fio_executable = check_output("which --skip-alias fio", shell=True).split()[0]
    except subprocess.CalledProcessError as e:
            print(e)
            print("Can't find the fio binary, please install it.")
            sys.exit(1)

    device_paths = ['/dev/' + dev for dev in devices]
    sys.stdout.flush()
+6 −1
Original line number Diff line number Diff line
@@ -65,7 +65,12 @@ def main():
    print "Found devices: ", devices

    # configure_devices(devices)
    fio_executable = '/usr/bin/fio'
    try:
            fio_executable = check_output("which --skip-alias fio", shell=True).split()[0]
    except subprocess.CalledProcessError as e:
            print(e)
            print("Can't find the fio binary, please install it.")
            sys.exit(1)

    device_paths = ['/dev/' + dev for dev in devices]
    print device_paths