diff options
author | Brian Cain <brian.cain@gmail.com> | 2015-05-06 15:35:13 -0400 |
---|---|---|
committer | Paul Moore <pmoore@redhat.com> | 2015-05-06 15:35:13 -0400 |
commit | f21fe13ced630cdda64d6e7f11e7bec48e2854f9 (patch) | |
tree | b7066f2ffc593b3564d97d5d86924003eb64322b | |
parent | 713cc03591eb21d36e56f14a1db85ad084b92d03 (diff) | |
download | libseccomp-f21fe13ced630cdda64d6e7f11e7bec48e2854f9.tar.gz |
tests: purge the heretical semicolons
These were likely vestiges from the C implementation of the
corresponding tests. But in python, we've been liberated from the
bonds of semicolons, let us rejoice and instead serve our
new whitespace masters!
Signed-off-by: Brian Cain <brian.cain@gmail.com>
Signed-off-by: Paul Moore <pmoore@redhat.com>
(imported from commit 49419d82c80129323c78ad51a7fd7b317e511b5f)
-rwxr-xr-x | tests/02-sim-basic.py | 8 | ||||
-rwxr-xr-x | tests/03-sim-basic_chains.py | 10 | ||||
-rwxr-xr-x | tests/04-sim-multilevel_chains.py | 14 | ||||
-rwxr-xr-x | tests/18-sim-basic_whitelist.py | 10 | ||||
-rwxr-xr-x | tests/22-sim-basic_chains_array.py | 10 | ||||
-rwxr-xr-x | tests/25-sim-multilevel_chains_adv.py | 4 |
6 files changed, 28 insertions, 28 deletions
diff --git a/tests/02-sim-basic.py b/tests/02-sim-basic.py index 868664f..60ad321 100755 --- a/tests/02-sim-basic.py +++ b/tests/02-sim-basic.py @@ -30,10 +30,10 @@ from seccomp import * def test(args): f = SyscallFilter(KILL) - f.add_rule_exactly(ALLOW, "read"); - f.add_rule_exactly(ALLOW, "write"); - f.add_rule_exactly(ALLOW, "close"); - f.add_rule_exactly(ALLOW, "rt_sigreturn"); + f.add_rule_exactly(ALLOW, "read") + f.add_rule_exactly(ALLOW, "write") + f.add_rule_exactly(ALLOW, "close") + f.add_rule_exactly(ALLOW, "rt_sigreturn") return f args = util.get_opt() diff --git a/tests/03-sim-basic_chains.py b/tests/03-sim-basic_chains.py index 324170d..81eac1a 100755 --- a/tests/03-sim-basic_chains.py +++ b/tests/03-sim-basic_chains.py @@ -30,11 +30,11 @@ from seccomp import * def test(args): f = SyscallFilter(KILL) - f.add_rule_exactly(ALLOW, "read", Arg(0, EQ, sys.stdin.fileno())); - f.add_rule_exactly(ALLOW, "write", Arg(0, EQ, sys.stdout.fileno())); - f.add_rule_exactly(ALLOW, "write", Arg(0, EQ, sys.stderr.fileno())); - f.add_rule_exactly(ALLOW, "close"); - f.add_rule_exactly(ALLOW, "rt_sigreturn"); + f.add_rule_exactly(ALLOW, "read", Arg(0, EQ, sys.stdin.fileno())) + f.add_rule_exactly(ALLOW, "write", Arg(0, EQ, sys.stdout.fileno())) + f.add_rule_exactly(ALLOW, "write", Arg(0, EQ, sys.stderr.fileno())) + f.add_rule_exactly(ALLOW, "close") + f.add_rule_exactly(ALLOW, "rt_sigreturn") return f args = util.get_opt() diff --git a/tests/04-sim-multilevel_chains.py b/tests/04-sim-multilevel_chains.py index 73a6921..3878636 100755 --- a/tests/04-sim-multilevel_chains.py +++ b/tests/04-sim-multilevel_chains.py @@ -30,22 +30,22 @@ from seccomp import * def test(args): f = SyscallFilter(KILL) - f.add_rule(ALLOW, "open"); - f.add_rule(ALLOW, "close"); + f.add_rule(ALLOW, "open") + f.add_rule(ALLOW, "close") f.add_rule(ALLOW, "read", Arg(0, EQ, sys.stdin.fileno()), Arg(1, NE, 0), - Arg(2, LT, sys.maxsize)); + Arg(2, LT, sys.maxsize)) f.add_rule(ALLOW, "write", Arg(0, EQ, sys.stdout.fileno()), Arg(1, NE, 0), - Arg(2, LT, sys.maxsize)); + Arg(2, LT, sys.maxsize)) f.add_rule(ALLOW, "write", Arg(0, EQ, sys.stderr.fileno()), Arg(1, NE, 0), - Arg(2, LT, sys.maxsize)); - f.add_rule(ALLOW, "close"); - f.add_rule(ALLOW, "rt_sigreturn"); + Arg(2, LT, sys.maxsize)) + f.add_rule(ALLOW, "close") + f.add_rule(ALLOW, "rt_sigreturn") return f args = util.get_opt() diff --git a/tests/18-sim-basic_whitelist.py b/tests/18-sim-basic_whitelist.py index a7b9cb7..95ae7c1 100755 --- a/tests/18-sim-basic_whitelist.py +++ b/tests/18-sim-basic_whitelist.py @@ -30,11 +30,11 @@ from seccomp import * def test(args): f = SyscallFilter(ALLOW) - f.add_rule_exactly(KILL, "read", Arg(0, EQ, sys.stdin.fileno())); - f.add_rule_exactly(KILL, "write", Arg(0, EQ, sys.stdout.fileno())); - f.add_rule_exactly(KILL, "write", Arg(0, EQ, sys.stderr.fileno())); - f.add_rule_exactly(KILL, "close"); - f.add_rule_exactly(KILL, "rt_sigreturn"); + f.add_rule_exactly(KILL, "read", Arg(0, EQ, sys.stdin.fileno())) + f.add_rule_exactly(KILL, "write", Arg(0, EQ, sys.stdout.fileno())) + f.add_rule_exactly(KILL, "write", Arg(0, EQ, sys.stderr.fileno())) + f.add_rule_exactly(KILL, "close") + f.add_rule_exactly(KILL, "rt_sigreturn") return f args = util.get_opt() diff --git a/tests/22-sim-basic_chains_array.py b/tests/22-sim-basic_chains_array.py index dfc3a58..c228661 100755 --- a/tests/22-sim-basic_chains_array.py +++ b/tests/22-sim-basic_chains_array.py @@ -33,11 +33,11 @@ from seccomp import * def test(args): f = SyscallFilter(KILL) - f.add_rule_exactly(ALLOW, "read", Arg(0, EQ, sys.stdin.fileno())); - f.add_rule_exactly(ALLOW, "write", Arg(0, EQ, sys.stdout.fileno())); - f.add_rule_exactly(ALLOW, "write", Arg(0, EQ, sys.stderr.fileno())); - f.add_rule_exactly(ALLOW, "close"); - f.add_rule_exactly(ALLOW, "rt_sigreturn"); + f.add_rule_exactly(ALLOW, "read", Arg(0, EQ, sys.stdin.fileno())) + f.add_rule_exactly(ALLOW, "write", Arg(0, EQ, sys.stdout.fileno())) + f.add_rule_exactly(ALLOW, "write", Arg(0, EQ, sys.stderr.fileno())) + f.add_rule_exactly(ALLOW, "close") + f.add_rule_exactly(ALLOW, "rt_sigreturn") return f args = util.get_opt() diff --git a/tests/25-sim-multilevel_chains_adv.py b/tests/25-sim-multilevel_chains_adv.py index 95a673c..0dd85de 100755 --- a/tests/25-sim-multilevel_chains_adv.py +++ b/tests/25-sim-multilevel_chains_adv.py @@ -32,11 +32,11 @@ def test(args): f = SyscallFilter(KILL) f.add_rule_exactly(ALLOW, 10, Arg(0, EQ, 11), - Arg(1, NE, 12)); + Arg(1, NE, 12)) f.add_rule_exactly(ALLOW, 20, Arg(0, EQ, 21), Arg(1, NE, 22), - Arg(2, EQ, 23)); + Arg(2, EQ, 23)) return f args = util.get_opt() |