From patchwork Fri Jun 24 23:47:29 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Lu=C3=ADs_Henriques?= X-Patchwork-Id: 9198311 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 8F4D16077D for ; Sat, 25 Jun 2016 00:36:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7F10D284EA for ; Sat, 25 Jun 2016 00:36:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 73AD9284ED; Sat, 25 Jun 2016 00:36:19 +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=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AC6FB284EA for ; Sat, 25 Jun 2016 00:36:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751898AbcFYAgP (ORCPT ); Fri, 24 Jun 2016 20:36:15 -0400 Received: from haggis.mythic-beasts.com ([93.93.131.56]:34331 "EHLO haggis.mythic-beasts.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751533AbcFYAgO (ORCPT ); Fri, 24 Jun 2016 20:36:14 -0400 X-Greylist: delayed 2923 seconds by postgrey-1.27 at vger.kernel.org; Fri, 24 Jun 2016 20:36:14 EDT Received: from [217.129.130.179] (port=65362 helo=localhost) by haggis.mythic-beasts.com with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1bGaov-0007NB-81; Sat, 25 Jun 2016 00:47:34 +0100 Date: Sat, 25 Jun 2016 00:47:29 +0100 From: Luis Henriques To: linux-btrfs@vger.kernel.org Cc: David Sterba Subject: [PATCH] btrfs-progs: tests: 001-simple-unmounted: fix test failure due to bashism Message-ID: <20160624234729.GA29145@charon> MIME-Version: 1.0 Content-Disposition: inline X-BlackCat-Spam-Score: -28 X-Mythic-Debug: Threshold = On = Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The usage of 'source' is a bashism, and '.' should be used instead. This is causing fuzz-tests/001-simple-unmounted to fail in systems where /bin/sh isn't bash: [TEST/fuzz] 001-simple-unmounted ./test.sh: 5: ./test.sh: source: not found ./test.sh: 7: ./test.sh: setup_root_helper: not found ./test.sh: 8: ./test.sh: check_prereq: not found ./test.sh: 18: ./test.sh: check_all_images: not found Since most (all?) tests actually use /bin/bash, change this test to use bash too. Signed-off-by: Luis Henriques --- tests/fuzz-tests/001-simple-unmounted/test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/tests/fuzz-tests/001-simple-unmounted/test.sh b/tests/fuzz-tests/001-simple-unmounted/test.sh index bf01a3a45a96..98fe7b0ccb74 100755 --- a/tests/fuzz-tests/001-simple-unmounted/test.sh +++ b/tests/fuzz-tests/001-simple-unmounted/test.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # iterate over all fuzzed images and run 'btrfs check'