From: Damien Lespiau Subject: [PATCH 04/23] piglit: Adapt igt.tests to discover the tests directory itself Date: Fri, 15 Nov 2013 16:33:21 +0000 Message-ID: <1384533220-20780-5-git-send-email-damien.lespiau@intel.com> References: <1384533220-20780-1-git-send-email-damien.lespiau@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by gabe.freedesktop.org (Postfix) with ESMTP id 3B3A1FB884 for ; Fri, 15 Nov 2013 08:33:51 -0800 (PST) In-Reply-To: <1384533220-20780-1-git-send-email-damien.lespiau@intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces@lists.freedesktop.org Errors-To: intel-gfx-bounces@lists.freedesktop.org To: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org Signed-off-by: Damien Lespiau --- 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