Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/python/setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

#
# Enhanced Seccomp Library Python Module Build Script
Expand Down
2 changes: 1 addition & 1 deletion tests/01-sim-allow.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

#
# Seccomp Library test program
Expand Down
2 changes: 1 addition & 1 deletion tests/02-sim-basic.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

#
# Seccomp Library test program
Expand Down
2 changes: 1 addition & 1 deletion tests/03-sim-basic_chains.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

#
# Seccomp Library test program
Expand Down
2 changes: 1 addition & 1 deletion tests/04-sim-multilevel_chains.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env/python3
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be #!/usr/bin/env python3 instead? I see a few others with similar problems.

If it helps, I expect one could write a fairly minimal sed script to automate the change.


#
# Seccomp Library test program
Expand Down
2 changes: 1 addition & 1 deletion tests/05-sim-long_jumps.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env/python3

#
# Seccomp Library test program
Expand Down
2 changes: 1 addition & 1 deletion tests/06-sim-actions.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env/python3

#
# Seccomp Library test program
Expand Down
2 changes: 1 addition & 1 deletion tests/07-sim-db_bug_looping.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env/python3

#
# Seccomp Library test program
Expand Down
2 changes: 1 addition & 1 deletion tests/08-sim-subtree_checks.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env/python3

#
# Seccomp Library test program
Expand Down
2 changes: 1 addition & 1 deletion tests/09-sim-syscall_priority_pre.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env/python3

#
# Seccomp Library test program
Expand Down
2 changes: 1 addition & 1 deletion tests/10-sim-syscall_priority_post.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env/python3

#
# Seccomp Library test program
Expand Down
2 changes: 1 addition & 1 deletion tests/11-basic-basic_errors.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env/python3

#
# Seccomp Library test program
Expand Down
2 changes: 1 addition & 1 deletion tests/12-sim-basic_masked_ops.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env/python3

#
# Seccomp Library test program
Expand Down
2 changes: 1 addition & 1 deletion tests/13-basic-attrs.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env/python3

#
# Seccomp Library test program
Expand Down
2 changes: 1 addition & 1 deletion tests/14-sim-reset.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env/python3

#
# Seccomp Library test program
Expand Down
2 changes: 1 addition & 1 deletion tests/15-basic-resolver.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env/python3

#
# Seccomp Library test program
Expand Down
2 changes: 1 addition & 1 deletion tests/16-sim-arch_basic.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env/python3

#
# Seccomp Library test program
Expand Down
2 changes: 1 addition & 1 deletion tests/17-sim-arch_merge.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env/python3

#
# Seccomp Library test program
Expand Down
2 changes: 1 addition & 1 deletion tests/18-sim-basic_allowlist.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env/python3

#
# Seccomp Library test program
Expand Down
2 changes: 1 addition & 1 deletion tests/19-sim-missing_syscalls.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env/python3

#
# Seccomp Library test program
Expand Down
2 changes: 1 addition & 1 deletion tests/20-live-basic_die.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env/python3

#
# Seccomp Library test program
Expand Down
2 changes: 1 addition & 1 deletion tests/21-live-basic_allow.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env/python3

#
# Seccomp Library test program
Expand Down
2 changes: 1 addition & 1 deletion tests/22-sim-basic_chains_array.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env/python3

#
# Seccomp Library test program
Expand Down
2 changes: 1 addition & 1 deletion tests/23-sim-arch_all_le_basic.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env/python3

#
# Seccomp Library test program
Expand Down
2 changes: 1 addition & 1 deletion tests/24-live-arg_allow.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env/python3

#
# Seccomp Library test program
Expand Down
2 changes: 1 addition & 1 deletion tests/25-sim-multilevel_chains_adv.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env/python3

#
# Seccomp Library test program
Expand Down
2 changes: 1 addition & 1 deletion tests/26-sim-arch_all_be_basic.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env/python3

#
# Seccomp Library test program
Expand Down
2 changes: 1 addition & 1 deletion tests/27-sim-bpf_blk_state.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env/python3

#
# Seccomp Library test program
Expand Down
2 changes: 1 addition & 1 deletion tests/28-sim-arch_x86.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env/python3

#
# Seccomp Library test program
Expand Down
2 changes: 1 addition & 1 deletion tests/29-sim-pseudo_syscall.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env/python3

#
# Seccomp Library test program
Expand Down
2 changes: 1 addition & 1 deletion tests/30-sim-socket_syscalls.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env/python3

#
# Seccomp Library test program
Expand Down
2 changes: 1 addition & 1 deletion tests/31-basic-version_check.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env/python3

#
# Seccomp Library test program
Expand Down
2 changes: 1 addition & 1 deletion tests/32-live-tsync_allow.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env/python3

#
# Seccomp Library test program
Expand Down
2 changes: 1 addition & 1 deletion tests/33-sim-socket_syscalls_be.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env/python3

#
# Seccomp Library test program
Expand Down
2 changes: 1 addition & 1 deletion tests/34-sim-basic_denylist.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env/python3

#
# Seccomp Library test program
Expand Down
2 changes: 1 addition & 1 deletion tests/35-sim-negative_one.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env/python3

#
# Seccomp Library test program
Expand Down
2 changes: 1 addition & 1 deletion tests/36-sim-ipc_syscalls.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env/python3

#
# Seccomp Library test program
Expand Down
2 changes: 1 addition & 1 deletion tests/37-sim-ipc_syscalls_be.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env/python3

#
# Seccomp Library test program
Expand Down
2 changes: 1 addition & 1 deletion tests/39-basic-api_level.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env/python3

#
# Seccomp Library test program
Expand Down
2 changes: 1 addition & 1 deletion tests/40-sim-log.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env/python3

#
# Seccomp Library test program
Expand Down
2 changes: 1 addition & 1 deletion tests/41-sim-syscall_priority_arch.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env/python3

#
# Seccomp Library test program
Expand Down
2 changes: 1 addition & 1 deletion tests/42-sim-adv_chains.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env/python3

#
# Seccomp Library test program
Expand Down
2 changes: 1 addition & 1 deletion tests/43-sim-a2_order.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env/python3

#
# Seccomp Library test program
Expand Down
2 changes: 1 addition & 1 deletion tests/44-live-a2_order.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env/python3

#
# Seccomp Library test program
Expand Down
2 changes: 1 addition & 1 deletion tests/45-sim-chain_code_coverage.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env/python3

#
# Seccomp Library test program
Expand Down
2 changes: 1 addition & 1 deletion tests/46-sim-kill_process.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env/python3

#
# Seccomp Library test program
Expand Down
2 changes: 1 addition & 1 deletion tests/47-live-kill_process.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env/python3

#
# Seccomp Library test program
Expand Down
2 changes: 1 addition & 1 deletion tests/48-sim-32b_args.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env/python3

#
# Seccomp Library test program
Expand Down
2 changes: 1 addition & 1 deletion tests/49-sim-64b_comparisons.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env/python3

#
# Seccomp Library test program
Expand Down
2 changes: 1 addition & 1 deletion tests/50-sim-hash_collision.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env/python3

#
# Seccomp Library test program
Expand Down
2 changes: 1 addition & 1 deletion tests/51-live-user_notification.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env/python3

#
# Seccomp Library test program
Expand Down
2 changes: 1 addition & 1 deletion tests/52-basic-load.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env/python3

#
# Seccomp Library test program
Expand Down
2 changes: 1 addition & 1 deletion tests/53-sim-binary_tree.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env/python3

#
# Seccomp Library test program
Expand Down
2 changes: 1 addition & 1 deletion tests/54-live-binary_tree.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env/python3

#
# Seccomp Library test program
Expand Down
2 changes: 1 addition & 1 deletion tests/56-basic-iterate_syscalls.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env/python3

#
# Seccomp Library test program
Expand Down
2 changes: 1 addition & 1 deletion tests/57-basic-rawsysrc.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env/python3

#
# Seccomp Library test program
Expand Down
2 changes: 1 addition & 1 deletion tests/58-live-tsync_notify.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env/python3

#
# Seccomp Library test program
Expand Down
2 changes: 1 addition & 1 deletion tests/59-basic-empty_binary_tree.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env/python3

#
# Seccomp Library test program
Expand Down
2 changes: 1 addition & 1 deletion tests/60-sim-precompute.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env/python3

#
# Seccomp Library test program
Expand Down
2 changes: 1 addition & 1 deletion tests/61-sim-transactions.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env/python3

#
# Seccomp Library test program
Expand Down
2 changes: 1 addition & 1 deletion tests/62-sim-arch_transactions.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env/python3

#
# Seccomp Library test program
Expand Down
4 changes: 2 additions & 2 deletions tests/regression
Original file line number Diff line number Diff line change
Expand Up @@ -262,9 +262,9 @@ function run_test_command() {
cmd="$cmd:$(cd $(pwd)/../src/python/build/lib.*; pwd)"
# check and adjust if we are doing a VPATH build
if [[ -e "./$2.py" ]]; then
cmd="$cmd /usr/bin/env python $2.py $3"
cmd="$cmd /usr/bin/env/python3 $2.py $3"
else
cmd="$cmd /usr/bin/env python ${srcdir}/$2.py $3"
cmd="$cmd /usr/bin/env/python3 ${srcdir}/$2.py $3"
fi
else
cmd="$2 $3"
Expand Down
Loading