From patchwork Tue Apr 21 10:41:10 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heinrich Schuchardt X-Patchwork-Id: 1274154 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=gmx.de Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=gmx.net header.i=@gmx.net header.a=rsa-sha256 header.s=badeba3b8450 header.b=W5wNhG8f; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4960VR6p1gz9sSX for ; Tue, 21 Apr 2020 20:41:35 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 0290F800A9; Tue, 21 Apr 2020 12:41:30 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=gmx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; secure) header.d=gmx.net header.i=@gmx.net header.b="W5wNhG8f"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 3E239808E1; Tue, 21 Apr 2020 12:41:28 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FREEMAIL_FROM,SPF_HELO_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from mout.gmx.net (mout.gmx.net [212.227.15.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id E1B538004A for ; Tue, 21 Apr 2020 12:41:24 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=gmx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=xypron.glpk@gmx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1587465681; bh=jBppXWP3NAE2eQknEyNUdGuKddKn2sxwwwXXTPSbZuk=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date; b=W5wNhG8f0qq2a7gcHRmgguVbasLeKeInrw3Rw/JI05iavVz8+sGM1fSsIWzqHkEfS 6g8EpweX+Ro7dri0JhB0wVzWl+22Nn7WBQT/caGX36GjWzwZJ9GNu4JtP6ooSfyoUa nReEUUWXo64qwrCVaWBC/tv0//lfX836Vkm18UlM= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from LT02.fritz.box ([84.119.33.226]) by mail.gmx.com (mrgmx004 [212.227.17.184]) with ESMTPSA (Nemesis) id 1MdNY2-1irVWT0O0W-00ZRCC; Tue, 21 Apr 2020 12:41:21 +0200 From: Heinrich Schuchardt To: Tom Rini Cc: Simon Glass , Stephen Warren , AKASHI Takahiro , u-boot@lists.denx.de, Heinrich Schuchardt Subject: [PATCH] test: use correct path in file system tests Date: Tue, 21 Apr 2020 12:41:10 +0200 Message-Id: <20200421104110.7498-1-xypron.glpk@gmx.de> X-Mailer: git-send-email 2.26.1 MIME-Version: 1.0 X-Provags-ID: V03:K1:mOg2r1n/mViSd4Ql/UfRHZ8ch0Y1U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F+WjeUyN6dGXOKYEfq1ZbHBTFfW2Xlm9//aKl2EZOCq5AJIZzu wrUYP+4mzfKQje/WiqJH1jAmipX3AYlLzoukgLAaKRtcniHD+X8KUsF5CM7IcKxKVMteGDeAR rdHdg1540wFD5BMQK4e9/cDrDly/UD0Qu8gRSdI9xGefc0zyvhzKovMREKVfRdnDo4dSPnDh7 MfgLSOIJ32ugQJAc9qJ8K8G32Hg8NMLe8EOcqAajvyRV/mQOiLfKC18JSpCEvzr1y4yyPPTno JC8T6p3Zdmf2/mTKbbYt+5V+JC9aF+Iy5VYP859VznQY4CwKRJGgUeQ0PqeMpWOf4HlGXwm3c uumP1RY0H6Up9gHJTdJDMHPrLy2tzJr7ES+4x8W2Ko7cIXnw0ZFJFra89o8JJn7O6IGnpUkMn JE4Ibz9PvXNkPUh5C X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.30rc1 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.102.2 at phobos.denx.de X-Virus-Status: Clean For non-root users mkfs.ext4 and fsck.ext4 are not in the search path at least on Debian. Use /sbin/mkfs.ext4 and /sbin/fsck.ext4 instead. Signed-off-by: Heinrich Schuchardt Reviewed-by: Simon Glass --- test/py/tests/test_fs/conftest.py | 2 +- test/py/tests/test_fs/fstest_helpers.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) -- 2.26.1 diff --git a/test/py/tests/test_fs/conftest.py b/test/py/tests/test_fs/conftest.py index 1949f91619..b03fe75f5c 100644 --- a/test/py/tests/test_fs/conftest.py +++ b/test/py/tests/test_fs/conftest.py @@ -165,7 +165,7 @@ def mk_fs(config, fs_type, size, id): check_call('rm -f %s' % fs_img, shell=True) check_call('dd if=/dev/zero of=%s bs=1M count=%d' % (fs_img, count), shell=True) - check_call('mkfs.%s %s %s' + check_call('/sbin/mkfs.%s %s %s' % (fs_lnxtype, mkfs_opt, fs_img), shell=True) return fs_img except CalledProcessError: diff --git a/test/py/tests/test_fs/fstest_helpers.py b/test/py/tests/test_fs/fstest_helpers.py index faec298248..f1326434a6 100644 --- a/test/py/tests/test_fs/fstest_helpers.py +++ b/test/py/tests/test_fs/fstest_helpers.py @@ -8,6 +8,6 @@ from subprocess import check_call, CalledProcessError def assert_fs_integrity(fs_type, fs_img): try: if fs_type == 'ext4': - check_call('fsck.ext4 -n -f %s' % fs_img, shell=True) + check_call('/sbin/fsck.ext4 -n -f %s' % fs_img, shell=True) except CalledProcessError: raise