From patchwork Tue Dec 14 08:09:19 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 12675519 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 48A81C433EF for ; Tue, 14 Dec 2021 08:09:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229648AbhLNIJW (ORCPT ); Tue, 14 Dec 2021 03:09:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57726 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229585AbhLNIJW (ORCPT ); Tue, 14 Dec 2021 03:09:22 -0500 Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 19326C061574 for ; Tue, 14 Dec 2021 00:09:22 -0800 (PST) Received: by mail-wm1-x32c.google.com with SMTP id i8-20020a7bc948000000b0030db7b70b6bso15678700wml.1 for ; Tue, 14 Dec 2021 00:09:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=9LFEFM4m/FM6B9UttvZC8dTAVnvNE7qpOruBGH+MXc8=; b=WnRU34YNEMQLKuLu8RNrRX3ShARN+K+hdOjh7cOeFGjukVYBQgwFlM0E++ykW0coL6 LhHb6wZLfWmviZAvWEmeaWGC8EmGlpKCNswfJ9yHrMf74Vht8Q3306+70zsxQ4swEDGm jWJZmdnI9BjZETW+chaNFp8ofSvXswnwaLHX4I7ufDR4ZkmSRJ+xYk+FP1rrGBiBZ6lb YcnsdNsm0ab5p6lTaCHho8rQfhfZzuQ8d8ni6/XeRF9ql+STKaAlYOK0mYoJ4k+t8dpC dMq1FTW1mHLStFpL8VGGvn51TfV8kel6H2dlgCm2jn3z5xq/hx89U649kzaW1Zp78Fk8 SE/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=9LFEFM4m/FM6B9UttvZC8dTAVnvNE7qpOruBGH+MXc8=; b=XjYm3n2IgB3ZVEA/wlPAD5re2H//ffxVuJbhWalCK5FCgNy8KMPaA+wxm7N42niZsZ G7y2TLDx2aUtO/WfCgG+orRLTEmQgiuKTBeJPBQP/ebNUZamYsqp6zEISY+6Dj+fGvwu FYoV+tI5zjl7yOhmIRLloGRf20MJ0yZlAP36fstqnI9eITMKxUZ1twj/9ruLURD/nCuW UF1aNRILs9JmZPtrSasJmcP+Xe6/zWi/tWOs90uF/WhKzxcph7zAcrO3hVbL/uyApBqk fRDsv98y1Jb356Xi94D1tt0un579MXAW2rHuU1tGARzYnQpxZtHTZv2aoffQ2RpZ1qay mngg== X-Gm-Message-State: AOAM530lj+ypf3KmIkj+h6FqG9XV9ybLw2osb1LzeUFW57g1D6VhUzyr ppG+HRFukbXqIJwpKNSkQC+6dQ== X-Google-Smtp-Source: ABdhPJxGcWRTUD0o5dQo8U+dhNCH6feVXNtrDmCvYgAM1AKnR6fWm10Ohj+SmjdkDcPEtXomI96S9Q== X-Received: by 2002:a7b:c30e:: with SMTP id k14mr43354633wmj.156.1639469360692; Tue, 14 Dec 2021 00:09:20 -0800 (PST) Received: from debian-brgl.home ([2a01:cb1d:334:ac00:7d50:ff5:f5c1:e225]) by smtp.gmail.com with ESMTPSA id n184sm1378761wme.2.2021.12.14.00.09.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Dec 2021 00:09:20 -0800 (PST) From: Bartosz Golaszewski To: Kent Gibson , Linus Walleij , Andy Shevchenko , Shuah Khan , Geert Uytterhoeven , Viresh Kumar Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH -next] selftests: gpio: gpio-sim: avoid forking test twice Date: Tue, 14 Dec 2021 09:09:19 +0100 Message-Id: <20211214080919.22616-1-brgl@bgdev.pl> X-Mailer: git-send-email 2.30.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org Use '-o' within [] in order to avoid spawning two processes for test. Suggested-by: Andy Shevchenko Signed-off-by: Bartosz Golaszewski Reviewed-by: Andy Shevchenko --- tools/testing/selftests/gpio/gpio-sim.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/gpio/gpio-sim.sh b/tools/testing/selftests/gpio/gpio-sim.sh index c913d5aec768..341e3de00896 100755 --- a/tools/testing/selftests/gpio/gpio-sim.sh +++ b/tools/testing/selftests/gpio/gpio-sim.sh @@ -23,7 +23,7 @@ remove_chip() { for FILE in $CONFIGFS_DIR/$CHIP/*; do BANK=`basename $FILE` - if [ "$BANK" = "live" ] || [ "$BANK" = "dev_name" ]; then + if [ "$BANK" = "live" -o "$BANK" = "dev_name" ]; then continue fi