From 45640e5b264e89341a0b294002a423232ff335a1 Mon Sep 17 00:00:00 2001 From: Nicolas Dechesne Date: Wed, 13 Jun 2018 17:05:26 +0200 Subject: [PATCH] helpers/*: do not assume /usr/bin/ The helpers assume that bootrr script is located in /usr/bin, which is not always the case, especially when one needs to run the test locally from the git tree. 'source' command will search for files using $PATH. When bootrr scripts are installed globally using 'make install' they will be found. When running them from a local folder, setting PATH to include /helpers will ensure that all scripts will be found. Signed-off-by: Nicolas Dechesne --- helpers/assert_device_present | 2 +- helpers/assert_driver_present | 2 +- helpers/ensure_lib_firmware | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/helpers/assert_device_present b/helpers/assert_device_present index 3d89f38..584bdf1 100755 --- a/helpers/assert_device_present +++ b/helpers/assert_device_present @@ -1,6 +1,6 @@ #!/bin/sh -source /usr/bin/bootrr +source bootrr TEST_CASE_ID="$1" DRIVER="$2" diff --git a/helpers/assert_driver_present b/helpers/assert_driver_present index 04f3027..719af8a 100755 --- a/helpers/assert_driver_present +++ b/helpers/assert_driver_present @@ -1,6 +1,6 @@ #!/bin/sh -source /usr/bin/bootrr +source bootrr TEST_CASE_ID="$1" DRIVER="$2" diff --git a/helpers/ensure_lib_firmware b/helpers/ensure_lib_firmware index de1e2fc..f64a493 100755 --- a/helpers/ensure_lib_firmware +++ b/helpers/ensure_lib_firmware @@ -1,6 +1,6 @@ #!/bin/sh -source /usr/bin/bootrr +source bootrr TEST_CASE_ID="$1" PARTITION=/dev/disk/by-partlabel/userdata