Skip to contentSkip to conversation

tests/drv_missed_irq_hang: Allow running test under piglit.

PATCH New Marius Vlad 1 participant 1 message May 16, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tests/drv_missed_irq_hang: Allow running test under piglit.

This fixes invalid path handling under piglit.

/opt/igt/tests/drv_missed_irq_hang: line 14:
/opt/igt/piglit//opt/igt/tests/../benchmarks/gem_blt: No such file or directory

---
 tests/drv_missed_irq_hang | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
tests/drv_missed_irq_hang +6 -1
index e76c7db..4c07cdd 100755
@@ -11,7 +11,12 @@ oldpath=`pwd`
 cd $i915_dfs_path
 
 function blt_wait {
-	$oldpath/$SOURCE_DIR/../benchmarks/gem_blt -r 1 -b 64 -t 1 -S > /dev/null
+	if [ ! -x $oldpath/$SOURCE_DIR/../benchmarks/gem_blt ]; then
+		GEM_BLT=$SOURCE_DIR/../benchmarks/gem_blt
+	else
+		GEM_BLT=$oldpath/$SOURCE_DIR/../benchmarks/gem_blt
+	fi
+	$GEM_BLT -r 1 -b 64 -t 1 -S > /dev/null
 }
 
 function check_for_missed_irq {
Signature · 6 lines
2.5.0

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx