Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3932111pxb; Tue, 2 Mar 2021 02:12:20 -0800 (PST) X-Google-Smtp-Source: ABdhPJyRDfprD3jy/XDG7nWdU5kumVVBfZHU0N5uHlJER92hLayEteP6VEZg2NS6DGk1u4/x9BCk X-Received: by 2002:a17:906:a147:: with SMTP id bu7mr19705806ejb.383.1614679940348; Tue, 02 Mar 2021 02:12:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614679940; cv=none; d=google.com; s=arc-20160816; b=mJN4+dIPY+cJSi/A+9hePjd1GIv+oH4cTE+wfAUL3F4PUrYdCHwx4KrGq5vjIwoxDt kod+sY0MpvTjkj3RR8DSuGuCEmSsKPgwjVPW13fFV6aNA3rPmIF3ZcbKCrjOvGQBBevR mZwaxqwlRd50vuShcDuL9ZP7EWyn3KBhbe4pGgz2KCNQRm+I6hwZ8pDZSAT/GSE1Dap8 G3hrIhGjfbPc163Rak7RPhn29RdsA1DYd3Y7RozqpSOWFDaufb8baddptj515JnmkrBy 1U3o4v9dC2+XH0Njpj+GQHItHKXB6ANUrJPZAN5ya/AqFEsT42nmDJrrJcq/PFX8R8nO 24SA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=pRwJtwp8pxlEG6Oe/vyNUhmXKdQiaLLOM+uY7z4keQI=; b=heSa2sFBMKPYqSyrxazSaU4CmhbQnYuA7LyHZxIW6JcX5FOzG8aOAUlwg0VNDtmrm5 AT58YxFjRIG0YA/MtFnDWpiFdvSxNU7mRVcNCD+W63hdUCTRmdI9JzNsxs3NKJvpahux /TF5pbMsr/AG8y4Psivxco0/8tUbyCiEpWqCiG3aBqRRFCakfdRY9r9Zq0H0LncsTg5K 2ihXuVcKThPhXctNchCP2eTFIcgVAugCi2ztvet9NSYszdl83LM/ldofHH3an1XEx7vc ZppLGVTUTsBpLMZiaqNKAAND+K2RyPl8qLIepvUiwmkBK4U1Roq/Crr8O4bTe10PqFYs vSIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=1RxFW4RF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f7si13547136edd.595.2021.03.02.02.11.57; Tue, 02 Mar 2021 02:12:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=1RxFW4RF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1379424AbhCBB2a (ORCPT + 99 others); Mon, 1 Mar 2021 20:28:30 -0500 Received: from mail.kernel.org ([198.145.29.99]:43776 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241178AbhCATPS (ORCPT ); Mon, 1 Mar 2021 14:15:18 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id EAEEE651BC; Mon, 1 Mar 2021 17:16:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1614618994; bh=E/xjog0OVqxHXt7s9wNYEhmoWkH1qiyAUbY2IKVwaWQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=1RxFW4RF1R/X74zqgaOOgPzHj3Ah8+Ezn5XO7kRJiqwUvLyGp0585VWFg5J2VavjS hs6EEXGUCSKXZq6YukMnWmMWFRY8gI57NdDd8wrDtzLgY7Ks327NwLiAIerVhgMh1r qJE6oWUqBNyMRZTypxH4R9psHkX+k/KMFnz32eMI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Po-Hsu Lin , Frederic Barrat , Michael Ellerman , Sasha Levin Subject: [PATCH 5.10 263/663] selftests/powerpc: Make the test check in eeh-basic.sh posix compliant Date: Mon, 1 Mar 2021 17:08:31 +0100 Message-Id: <20210301161154.826745964@linuxfoundation.org> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210301161141.760350206@linuxfoundation.org> References: <20210301161141.760350206@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Po-Hsu Lin [ Upstream commit 3db380570af7052620ace20c29e244938610ca71 ] The == operand is a bash extension, thus this will fail on Ubuntu with: ./eeh-basic.sh: 89: test: 2: unexpected operator As the /bin/sh on Ubuntu is pointed to DASH. Use -eq to fix this posix compatibility issue. Fixes: 996f9e0f93f162 ("selftests/powerpc: Fix eeh-basic.sh exit codes") Signed-off-by: Po-Hsu Lin Reviewed-by: Frederic Barrat Signed-off-by: Michael Ellerman Link: https://lore.kernel.org/r/20201228043459.14281-1-po-hsu.lin@canonical.com Signed-off-by: Sasha Levin --- tools/testing/selftests/powerpc/eeh/eeh-basic.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/powerpc/eeh/eeh-basic.sh b/tools/testing/selftests/powerpc/eeh/eeh-basic.sh index 0d783e1065c86..64779f073e177 100755 --- a/tools/testing/selftests/powerpc/eeh/eeh-basic.sh +++ b/tools/testing/selftests/powerpc/eeh/eeh-basic.sh @@ -86,5 +86,5 @@ echo "$failed devices failed to recover ($dev_count tested)" lspci | diff -u $pre_lspci - rm -f $pre_lspci -test "$failed" == 0 +test "$failed" -eq 0 exit $? -- 2.27.0