From patchwork Thu Mar 2 10:08:25 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomeu Vizoso X-Patchwork-Id: 9599821 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 97668600CB for ; Thu, 2 Mar 2017 10:09:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8348F28599 for ; Thu, 2 Mar 2017 10:09:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 785E12859F; Thu, 2 Mar 2017 10:09:27 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 06EBE28599 for ; Thu, 2 Mar 2017 10:09:27 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 26EB06EAC4; Thu, 2 Mar 2017 10:09:26 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-wr0-x241.google.com (mail-wr0-x241.google.com [IPv6:2a00:1450:400c:c0c::241]) by gabe.freedesktop.org (Postfix) with ESMTPS id 835C76EABE for ; Thu, 2 Mar 2017 10:09:24 +0000 (UTC) Received: by mail-wr0-x241.google.com with SMTP id l37so8790374wrc.3 for ; Thu, 02 Mar 2017 02:09:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id; bh=t2GhC4LeZOb2Ov3Xja7a3VD6I0KENkeIyz5mvJrn9Rw=; b=Ssq1cLWOpo0KTF/rj3p+OGpWtN4EdVtdF8bVYhLC1cyUI49Y9kOQshx/71VZTJmNNJ SXO9/jDTjITOc3FPnhyEOLJJs/B/Ta/aPWy8pgXDxFkhDcTRgaBnVdZt6Oi47BxQyKef fnxBUCWwfb4m1Yrt8gT73tCgBKyeSpYKO94X3oc3zosNNJ0rPSDTjQpe0SKZu1ebjqRc ERm/QL/ppipduNcejPfJEqv/hIctN5ANlphOxbdyrvXAlwn6HxUvHcdUG5oY5DJuPX7V iRnIrr35m7W9SNjbqDRyfVqCqmpH8djWhhh2iv4ycQ+7hRPPbgbJxZVO4XzIaLb/5bhq MogA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id; bh=t2GhC4LeZOb2Ov3Xja7a3VD6I0KENkeIyz5mvJrn9Rw=; b=lyIBSFcbeDYRObWdhG7HT+5V88Od8SkJ4HQr1WhJwlHTtiIx9ZitYOpqRl2pDHDFxc qs9TOdQJ5hFsQkiUMOsCNTJV5IMNGuRXFF1tQsmFlE5G0IVhI/8yKf87tQoviG02jDz+ PygNNzIBLkATBZNIdtAv2aqiwSV2z69srWc5X587N2uhRot/n31nCOzU6eaiQT9QDApp IG9dzhWFnNoLCDNBux8XY//lbf6lnmOGHKvvTfaHyzMWoBEzRucONU7RIQUXDttZW4u5 JlN2HyPhoInzN5cTPxnF/o5PMPxffUoqGqxvScPiGEl/Pe/4FQO07d+R8Rj7rmaf/e5E ev4Q== X-Gm-Message-State: AMke39mIoPmIyxPFix5hIOU9eLZkx7nEhb2RPUcc8bG0wKj3kLR0brIviiSgp9YLey7MYg== X-Received: by 10.223.172.210 with SMTP id o76mr10971400wrc.21.1488449362950; Thu, 02 Mar 2017 02:09:22 -0800 (PST) Received: from cizrna.lan ([109.72.12.6]) by smtp.gmail.com with ESMTPSA id 127sm10539853wmt.20.2017.03.02.02.09.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 02 Mar 2017 02:09:22 -0800 (PST) From: Tomeu Vizoso To: Intel GFX discussion Date: Thu, 2 Mar 2017 11:08:25 +0100 Message-Id: <20170302100826.740-1-tomeu.vizoso@collabora.com> X-Mailer: git-send-email 2.9.3 Cc: Tomeu Vizoso Subject: [Intel-gfx] [PATCH i-g-t 1/2] lib: Remove i915ism when checking that debugfs is mounted 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-Virus-Scanned: ClamAV using ClamSMTP Instead of checking for "i915_error_state" within dri/N/, check for "name". This allows more tests to run against drivers other than i915. Signed-off-by: Tomeu Vizoso --- lib/igt_debugfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/igt_debugfs.c b/lib/igt_debugfs.c index e64d001b71cf..3f4f32da5b4a 100644 --- a/lib/igt_debugfs.c +++ b/lib/igt_debugfs.c @@ -139,7 +139,7 @@ static bool __igt_debugfs_init(igt_debugfs_t *debugfs) strcpy(debugfs->root, igt_debugfs_mount()); for (n = 0; n < 16; n++) { int len = sprintf(debugfs->dri_path, "%s/dri/%d", debugfs->root, n); - sprintf(debugfs->dri_path + len, "/i915_error_state"); + sprintf(debugfs->dri_path + len, "/name"); if (stat(debugfs->dri_path, &st) == 0) { debugfs->dri_path[len] = '\0'; return true;