From: shekhar sharma <shekhar250198@gmail.com>
To: Pablo Neira Ayuso <pablo@netfilter.org>
Cc: Netfilter Development Mailing list <netfilter-devel@vger.kernel.org>
Subject: Re: [PATCH nft v12]tests: py: add netns feature
Date: Thu, 4 Jul 2019 22:06:54 +0530 [thread overview]
Message-ID: <CAN9XX2peYg8rr4ix+DZ_XZSix8hrWBNcQeA78bV6cjjjZDoFYQ@mail.gmail.com> (raw)
In-Reply-To: <20190704131421.sejz6sby3odwl6yx@salvia>
On Thu, Jul 4, 2019 at 6:44 PM Pablo Neira Ayuso <pablo@netfilter.org> wrote:
>
> On Wed, Jul 03, 2019 at 12:50:45AM +0530, Shekhar Sharma wrote:
> > diff --git a/tests/py/nft-test.py b/tests/py/nft-test.py
> > index fcbd28ca..8076ce78 100755
> > --- a/tests/py/nft-test.py
> > +++ b/tests/py/nft-test.py
> > @@ -174,27 +174,31 @@ def print_differences_error(filename, lineno, cmd):
> [...]
> > -def table_create(table, filename, lineno):
> > +def table_create(table, filename, lineno, netns=""):
> > '''
> > Adds a table.
> > '''
> > @@ -208,6 +212,8 @@ def table_create(table, filename, lineno):
> >
> > # We add a new table
> > cmd = "add table %s" % table
> > + if netns:
> > + cmd = "ip netns exec " + "{} {}".format(netns,cmd)
> > ret = execute_cmd(cmd, filename, lineno)
> >
> > if ret != 0:
>
> You're missing updates of table_create() invocations, because you are
> setting a default value to the netns parameter to "", this never runs
> the netns patch I'm afraid.
Ok. I will correct it and send the patch again.
prev parent reply other threads:[~2019-07-04 16:37 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-07-02 19:20 [PATCH nft v12]tests: py: add netns feature Shekhar Sharma
2019-07-04 13:14 ` Pablo Neira Ayuso
2019-07-04 16:36 ` shekhar sharma [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAN9XX2peYg8rr4ix+DZ_XZSix8hrWBNcQeA78bV6cjjjZDoFYQ@mail.gmail.com \
--to=shekhar250198@gmail.com \
--cc=netfilter-devel@vger.kernel.org \
--cc=pablo@netfilter.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).