From patchwork Mon May 16 13:08:01 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marius Vlad X-Patchwork-Id: 9102871 Return-Path: X-Original-To: patchwork-intel-gfx@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id AD58C9F1D3 for ; Mon, 16 May 2016 13:05:09 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D555A20274 for ; Mon, 16 May 2016 13:05:08 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id C00992026C for ; Mon, 16 May 2016 13:05:07 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 823386E425; Mon, 16 May 2016 13:05:05 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by gabe.freedesktop.org (Postfix) with ESMTP id A9DBE6E425 for ; Mon, 16 May 2016 13:05:03 +0000 (UTC) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga102.jf.intel.com with ESMTP; 16 May 2016 06:05:03 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.24,627,1455004800"; d="scan'208";a="807668794" Received: from mcvlad-wk.rb.intel.com ([10.237.105.57]) by orsmga003.jf.intel.com with ESMTP; 16 May 2016 06:05:03 -0700 From: Marius Vlad To: intel-gfx@lists.freedesktop.org Date: Mon, 16 May 2016 16:08:01 +0300 Message-Id: <1463404081-2013-1-git-send-email-marius.c.vlad@intel.com> X-Mailer: git-send-email 2.8.0.rc3 Subject: [Intel-gfx] [PATCH i-g-t] tests/drv_missed_irq_hang: Allow running test under piglit. X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Spam-Status: No, score=-5.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 Signed-off-by: Marius Vlad --- tests/drv_missed_irq_hang | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/drv_missed_irq_hang b/tests/drv_missed_irq_hang index e76c7db..4c07cdd 100755 --- a/tests/drv_missed_irq_hang +++ b/tests/drv_missed_irq_hang @@ -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 {