Commit 4f3474e0 authored by Pavel Emelyanov's avatar Pavel Emelyanov

zdtm: Move netns-nf test into ns/uns flavor

After this patch it stops working in zdtm.sh launcher duo to incomplete
root constructed. Do we want to fix it?
Signed-off-by: 's avatarPavel Emelyanov <xemul@openvz.org>
Acked-by: 's avatarAndrew Vagin <avagin@odin.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 35237d2a
...@@ -199,7 +199,6 @@ generate_test_list() ...@@ -199,7 +199,6 @@ generate_test_list()
ns/static/msgque ns/static/msgque
ns/static/sem ns/static/sem
transition/ipc transition/ipc
static/netns-nf
static/netns static/netns
ns/static/netns-dev ns/static/netns-dev
static/cgroup00 static/cgroup00
......
...@@ -11,10 +11,12 @@ const char *test_author = "Pavel Emelianov <xemul@parallels.com>"; ...@@ -11,10 +11,12 @@ const char *test_author = "Pavel Emelianov <xemul@parallels.com>";
char *filename; char *filename;
TEST_OPTION(filename, string, "file name", 1); TEST_OPTION(filename, string, "file name", 1);
static int test_fn(int argc, char **argv) int main(int argc, char **argv)
{ {
char cmd[128]; char cmd[128];
test_init(argc, argv);
if (system("iptables -A INPUT -t filter --protocol icmp -j DROP")) { if (system("iptables -A INPUT -t filter --protocol icmp -j DROP")) {
pr_perror("Can't set input rule"); pr_perror("Can't set input rule");
return -1; return -1;
...@@ -44,12 +46,3 @@ static int test_fn(int argc, char **argv) ...@@ -44,12 +46,3 @@ static int test_fn(int argc, char **argv)
pass(); pass();
return 0; return 0;
} }
#define CLONE_NEWNET 0x40000000
int main(int argc, char **argv)
{
test_init_ns(argc, argv, CLONE_NEWNET, test_fn);
return 0;
}
{'flavor': 'h'} {'flavor': 'ns uns', 'deps': [ '/bin/sh', '/sbin/iptables', '/usr/lib64/xtables/libxt_standard.so', '/bin/diff' ], 'flags': 'suid'}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment