From patchwork Tue May 30 10:46:33 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neutron Soutmun X-Patchwork-Id: 768544 X-Patchwork-Delegate: kadlec@blackhole.kfki.hu Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3wcVfM4cK3z9s3T for ; Tue, 30 May 2017 20:46:51 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="LTJaZuSK"; dkim-atps=neutral Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751412AbdE3Kqu (ORCPT ); Tue, 30 May 2017 06:46:50 -0400 Received: from mail-pf0-f182.google.com ([209.85.192.182]:34585 "EHLO mail-pf0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751024AbdE3Kqi (ORCPT ); Tue, 30 May 2017 06:46:38 -0400 Received: by mail-pf0-f182.google.com with SMTP id 9so69004197pfj.1 for ; Tue, 30 May 2017 03:46:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:mime-version:content-disposition :user-agent; bh=qgvlGFk5xzee9tFswcJSKgi5zSzRfLDCsRLXflQdpG0=; b=LTJaZuSK+edZih8wVCGTbGH3VVKIHQrEo8k7jEuRfFshhMiCUFqLQE+61clytEJ1xJ JlwK7ij8wwZTPOq8li2HYJpkMbMKVz+aMmLltCHuX3UX6ndqCNoGiGL6SuQZWMxjFRJf zEFQ821pLzeBZWVYNB6lqIHgZwoxo01pQCUYvT1opIrUM12L6cdzUMCMRr+0d49r8ER2 I90lcHJoA78QRSp4T/GcOMlzmhneUJYinIL/ypYTJGQbUj73sMloLI/41C61UcXvJGBX pmSUQLZ61hsgP6rWPRfj2sQDFUmhnFF6PA61MGCzUg159+4MLpS8kTEr+u3ZQovLG5HC wvZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition:user-agent; bh=qgvlGFk5xzee9tFswcJSKgi5zSzRfLDCsRLXflQdpG0=; b=LWPWh5r8ipvr4MHEcKkYek86rxkbYtau31C3eiCKNGZMZ9x7Gt14IrB1QO9SMG+ckw Dws+A1cR1TBhDALNjTkJOTs9Bga1YYOBiVlYXR/SQfH1Bid4QHHOrB9JWKymLOTl+SlO l9GcmEVRItMgjQEOE1pgCJi9wrFPKVZwFuwYpD5dhGPfMztwtbVo4xjGywvM0bgaN7iX 13sHxfUaIyBvWZ7qVp3+W8eSNZDeQG5Cu/EPcAQ2L8bX23NBzJuJSoS2oVg5WOniwKUS ZxwGpinWYeiOhKYm7AJQ/H0qdHvOu1QzclEIyDrE5H/BK2XaIJUHgHFlbF1xHdeXIry/ dLww== X-Gm-Message-State: AODbwcBn90klUZYKhoRLHSd1Lh75wE+Ayh/03VbgT3UTXLalldVW/hpz di/H+rfOa2n5Lzr+ X-Received: by 10.99.123.94 with SMTP id k30mr24250720pgn.91.1496141197644; Tue, 30 May 2017 03:46:37 -0700 (PDT) Received: from hydrogen ([180.183.101.225]) by smtp.gmail.com with ESMTPSA id q135sm27466729pgq.41.2017.05.30.03.46.36 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 30 May 2017 03:46:36 -0700 (PDT) Date: Tue, 30 May 2017 17:46:33 +0700 From: Neutron Soutmun To: netfilter-devel@vger.kernel.org Subject: [PATCH] ipset: Fix ipset command replacement in runtest.sh Message-ID: <20170530104633.xb3urujnizjkc4n6@hydrogen> MIME-Version: 1.0 Content-Disposition: inline User-Agent: NeoMutt/20170306 (1.8.0) Sender: netfilter-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netfilter-devel@vger.kernel.org Fix the ipset command replacement. For ipset="/sbin/ipset" Actual: /sbin//sbin/ipset 2>.foo.err | ... | xargs -n1 ipset Expected: /sbin/ipset 2>.foo.err | ... | xargs -n1 /sbin/ipset --- tests/runtest.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/runtest.sh b/tests/runtest.sh index 186f11d..8f4c02a 100755 --- a/tests/runtest.sh +++ b/tests/runtest.sh @@ -96,7 +96,7 @@ for types in $tests; do echo -ne "$types: $what: " cmd=`echo $cmd | sed "s|ipset|$ipset 2>.foo.err|"` # For the case: ipset list | ... | xargs -n1 ipset - cmd=`echo $cmd | sed "s|ipset|$ipset|"` + cmd=`echo $cmd | sed "s|ipset|$ipset|2g"` eval $cmd r=$? # echo $ret $r