diff mbox

[i-g-t] tests/tools_test: Find tools in source or installed locations

Message ID 1429308635-30108-1-git-send-email-michael.w.mason@intel.com (mailing list archive)
State New, archived
Headers show

Commit Message

Mason, Michael W April 17, 2015, 10:10 p.m. UTC
Signed-off-by: Mike Mason <michael.w.mason@intel.com>
---
 tests/tools_test | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Comments

Thomas Wood April 22, 2015, 5:26 p.m. UTC | #1
On 17 April 2015 at 23:10, Mike Mason <michael.w.mason@intel.com> wrote:
> Signed-off-by: Mike Mason <michael.w.mason@intel.com>

I've pushed this patch, but I'm not actually sure if this test should
actually be included in the test suite or part of the package check
scripts. Daniel might be able to confirm the original intention.


> ---
>  tests/tools_test | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/tests/tools_test b/tests/tools_test
> index 8bda263..a6178e1 100755
> --- a/tests/tools_test
> +++ b/tests/tools_test
> @@ -6,9 +6,9 @@ SOURCE_DIR="$( dirname "${BASH_SOURCE[0]}" )"
>  . $SOURCE_DIR/drm_lib.sh
>
>  # ARB_MODE has existed for many gens
> -do_or_die "$SOURCE_DIR/../tools/intel_reg_read 0x4030"
> -
> -do_or_die "$SOURCE_DIR/../tools/intel_reg_dumper"
> +PATH=$SOURCE_DIR/../tools:$PATH
> +do_or_die "intel_reg_read 0x4030"
> +do_or_die "intel_reg_dumper"
>
>  # TODO: Add more tests
>
> --
> 2.1.0
>
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/intel-gfx
diff mbox

Patch

diff --git a/tests/tools_test b/tests/tools_test
index 8bda263..a6178e1 100755
--- a/tests/tools_test
+++ b/tests/tools_test
@@ -6,9 +6,9 @@  SOURCE_DIR="$( dirname "${BASH_SOURCE[0]}" )"
 . $SOURCE_DIR/drm_lib.sh
 
 # ARB_MODE has existed for many gens
-do_or_die "$SOURCE_DIR/../tools/intel_reg_read 0x4030"
-
-do_or_die "$SOURCE_DIR/../tools/intel_reg_dumper"
+PATH=$SOURCE_DIR/../tools:$PATH
+do_or_die "intel_reg_read 0x4030"
+do_or_die "intel_reg_dumper"
 
 # TODO: Add more tests