[PATCH 04/23] piglit: Adapt igt.tests to discover the tests directory itself

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Damien Lespiau <damien.lespiau@xxxxxxxxx>
---
 piglit/tests/igt.tests | 16 +++-------------
 1 file changed, 3 insertions(+), 13 deletions(-)

diff --git a/piglit/tests/igt.tests b/piglit/tests/igt.tests
index f388492..16e4586 100644
--- a/piglit/tests/igt.tests
+++ b/piglit/tests/igt.tests
@@ -31,20 +31,10 @@ from os import path
 from framework.core import testBinDir, TestProfile
 from framework.exectest import ExecTest
 
-#############################################################################
-##### IGTTest: Execute an intel-gpu-tools test
-#####
-##### To use this, create an igt symlink in piglit/bin which points to the root
-##### of the intel-gpu-tools sources with the compiled tests. Piglit will
-##### automatically add all tests into the 'igt' category.
-#############################################################################
-
-if not os.path.exists(os.path.join(testBinDir, 'igt')):
-    print "igt symlink not found!"
-    sys.exit(0)
-
 # Chase the piglit/bin/igt symlink to find where the tests really live.
-igtTestRoot = path.join(path.realpath(path.join(testBinDir, 'igt')), 'tests')
+piglitRoot = path.join(path.dirname(path.realpath(__file__)), os.pardir)
+igtRoot = path.join(piglitRoot, os.pardir)
+igtTestRoot = path.join(igtRoot, 'tests')
 
 profile = TestProfile()
 
-- 
1.8.3.1

_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/intel-gfx




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux