From patchwork Mon Oct 6 16:42:10 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wang Shilong X-Patchwork-Id: 5035621 Return-Path: X-Original-To: patchwork-fstests@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id A4BC4C11AB for ; Mon, 6 Oct 2014 08:43:00 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E060020145 for ; Mon, 6 Oct 2014 08:42:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 17F7220136 for ; Mon, 6 Oct 2014 08:42:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751827AbaJFIm6 (ORCPT ); Mon, 6 Oct 2014 04:42:58 -0400 Received: from mail-pa0-f50.google.com ([209.85.220.50]:33492 "EHLO mail-pa0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751777AbaJFIm6 (ORCPT ); Mon, 6 Oct 2014 04:42:58 -0400 Received: by mail-pa0-f50.google.com with SMTP id kx10so4886871pab.23 for ; Mon, 06 Oct 2014 01:42:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=0AQjPe0cQclH7HeSyrg+fj9ioMSI25B+ahvCWuSa5MU=; b=gnJT7fzGzrskx67gak5OPh6o4enmP/hCpdKTfLxcCd5+5yksW5QnI2yPmzH+hEcPsK BuntOw7iGs+qxmbhSsyodicXW7QqW7GaGvymfcIsuJcrMh/dXFN82P6BSWfRCjBprYJh Xe6MIJUzUMsH2IuTM4FTI+khxBM4iJjhC6lM/AVYM52WEqTAzlo/RZv+eEUyPnItjjcS ZoFHIvuUNuEVod6UC+YUkA8m8m1Y3G13iTPO69myDYC00CGR/GJGoW02X2H7RUa3R7aM EsU4skL+MbBIZPaCYgpw7U6z0smoiVwdVj2Tr3szE7wO0lcvFAmLc0jo+fi9VFuJr8yZ SQnw== X-Received: by 10.70.43.199 with SMTP id y7mr17465094pdl.12.1412584977694; Mon, 06 Oct 2014 01:42:57 -0700 (PDT) Received: from vm01.localdomain ([223.65.74.52]) by mx.google.com with ESMTPSA id p1sm12690122pby.29.2014.10.06.01.42.55 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 06 Oct 2014 01:42:56 -0700 (PDT) From: Wang Shilong To: fstests@vger.kernel.org Cc: wangshilong1991@gmail.com Subject: [PATCH] xfstests/common: fix to test if ltp/fsstress valid Date: Mon, 6 Oct 2014 12:42:10 -0400 Message-Id: <1412613730-53245-1-git-send-email-wangshilong1991@gmail.com> X-Mailer: git-send-email 1.8.3.1 Sender: fstests-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: fstests@vger.kernel.org X-Spam-Status: No, score=-4.8 required=5.0 tests=BAYES_00, DATE_IN_FUTURE_06_12, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,FREEMAIL_FROM,RCVD_IN_DNSWL_HI, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham 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 test if FSSTRESS_PROG is a null string dosen't make sense because it has just been set. Here fix it by testing if it is an executable file. Signed-off-by: Wang Shilong --- common/config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/config b/common/config index d68d4d0..64506a2 100644 --- a/common/config +++ b/common/config @@ -135,7 +135,7 @@ export UMOUNT_PROG="`set_prog_path umount`" [ "$UMOUNT_PROG" = "" ] && _fatal "umount not found" export FSSTRESS_PROG="./ltp/fsstress" -[ "$FSSTRESS_PROG" = "" ] && _fatal "fsstress not found" +[ ! -x $FSSTRESS_PROG ] && _fatal "fsstress not found or executable" export PERL_PROG="`set_prog_path perl`" [ "$PERL_PROG" = "" ] && _fatal "perl not found"