From 20cb26782af52fc08582ac1a74808f369d4bc640 Mon Sep 17 00:00:00 2001 From: Harmen Stoppels Date: Mon, 2 Dec 2024 20:08:12 +0100 Subject: [PATCH] use `/usr/bin/env python3` throughout Only the python3 executable is guaranteed Signed-off-by: Harmen Stoppels --- src/python/setup.py | 2 +- tests/01-sim-allow.py | 2 +- tests/02-sim-basic.py | 2 +- tests/03-sim-basic_chains.py | 2 +- tests/04-sim-multilevel_chains.py | 2 +- tests/05-sim-long_jumps.py | 2 +- tests/06-sim-actions.py | 2 +- tests/07-sim-db_bug_looping.py | 2 +- tests/08-sim-subtree_checks.py | 2 +- tests/09-sim-syscall_priority_pre.py | 2 +- tests/10-sim-syscall_priority_post.py | 2 +- tests/11-basic-basic_errors.py | 2 +- tests/12-sim-basic_masked_ops.py | 2 +- tests/13-basic-attrs.py | 2 +- tests/14-sim-reset.py | 2 +- tests/15-basic-resolver.py | 2 +- tests/16-sim-arch_basic.py | 2 +- tests/17-sim-arch_merge.py | 2 +- tests/18-sim-basic_allowlist.py | 2 +- tests/19-sim-missing_syscalls.py | 2 +- tests/20-live-basic_die.py | 2 +- tests/21-live-basic_allow.py | 2 +- tests/22-sim-basic_chains_array.py | 2 +- tests/23-sim-arch_all_le_basic.py | 2 +- tests/24-live-arg_allow.py | 2 +- tests/25-sim-multilevel_chains_adv.py | 2 +- tests/26-sim-arch_all_be_basic.py | 2 +- tests/27-sim-bpf_blk_state.py | 2 +- tests/28-sim-arch_x86.py | 2 +- tests/29-sim-pseudo_syscall.py | 2 +- tests/30-sim-socket_syscalls.py | 2 +- tests/31-basic-version_check.py | 2 +- tests/32-live-tsync_allow.py | 2 +- tests/33-sim-socket_syscalls_be.py | 2 +- tests/34-sim-basic_denylist.py | 2 +- tests/35-sim-negative_one.py | 2 +- tests/36-sim-ipc_syscalls.py | 2 +- tests/37-sim-ipc_syscalls_be.py | 2 +- tests/39-basic-api_level.py | 2 +- tests/40-sim-log.py | 2 +- tests/41-sim-syscall_priority_arch.py | 2 +- tests/42-sim-adv_chains.py | 2 +- tests/43-sim-a2_order.py | 2 +- tests/44-live-a2_order.py | 2 +- tests/45-sim-chain_code_coverage.py | 2 +- tests/46-sim-kill_process.py | 2 +- tests/47-live-kill_process.py | 2 +- tests/48-sim-32b_args.py | 2 +- tests/49-sim-64b_comparisons.py | 2 +- tests/50-sim-hash_collision.py | 2 +- tests/51-live-user_notification.py | 2 +- tests/52-basic-load.py | 2 +- tests/53-sim-binary_tree.py | 2 +- tests/54-live-binary_tree.py | 2 +- tests/56-basic-iterate_syscalls.py | 2 +- tests/57-basic-rawsysrc.py | 2 +- tests/58-live-tsync_notify.py | 2 +- tests/59-basic-empty_binary_tree.py | 2 +- tests/60-sim-precompute.py | 2 +- tests/61-sim-transactions.py | 2 +- tests/62-sim-arch_transactions.py | 2 +- tests/regression | 4 ++-- 62 files changed, 63 insertions(+), 63 deletions(-) diff --git a/src/python/setup.py b/src/python/setup.py index 46f9a731..f500fcb0 100755 --- a/src/python/setup.py +++ b/src/python/setup.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # # Enhanced Seccomp Library Python Module Build Script diff --git a/tests/01-sim-allow.py b/tests/01-sim-allow.py index d1dbf081..9050b7bc 100755 --- a/tests/01-sim-allow.py +++ b/tests/01-sim-allow.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # # Seccomp Library test program diff --git a/tests/02-sim-basic.py b/tests/02-sim-basic.py index 2b0029cd..906c2d14 100755 --- a/tests/02-sim-basic.py +++ b/tests/02-sim-basic.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # # Seccomp Library test program diff --git a/tests/03-sim-basic_chains.py b/tests/03-sim-basic_chains.py index f8d33735..04028f66 100755 --- a/tests/03-sim-basic_chains.py +++ b/tests/03-sim-basic_chains.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # # Seccomp Library test program diff --git a/tests/04-sim-multilevel_chains.py b/tests/04-sim-multilevel_chains.py index a5127a2b..54ce9e14 100755 --- a/tests/04-sim-multilevel_chains.py +++ b/tests/04-sim-multilevel_chains.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env/python3 # # Seccomp Library test program diff --git a/tests/05-sim-long_jumps.py b/tests/05-sim-long_jumps.py index 6d9d5d43..5b1a04c4 100755 --- a/tests/05-sim-long_jumps.py +++ b/tests/05-sim-long_jumps.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env/python3 # # Seccomp Library test program diff --git a/tests/06-sim-actions.py b/tests/06-sim-actions.py index cfbd4f47..0d56cece 100755 --- a/tests/06-sim-actions.py +++ b/tests/06-sim-actions.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env/python3 # # Seccomp Library test program diff --git a/tests/07-sim-db_bug_looping.py b/tests/07-sim-db_bug_looping.py index 5fcdf115..07aa0993 100755 --- a/tests/07-sim-db_bug_looping.py +++ b/tests/07-sim-db_bug_looping.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env/python3 # # Seccomp Library test program diff --git a/tests/08-sim-subtree_checks.py b/tests/08-sim-subtree_checks.py index 66dac3c2..d250236b 100755 --- a/tests/08-sim-subtree_checks.py +++ b/tests/08-sim-subtree_checks.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env/python3 # # Seccomp Library test program diff --git a/tests/09-sim-syscall_priority_pre.py b/tests/09-sim-syscall_priority_pre.py index 2ba5ea0a..bf9fc689 100755 --- a/tests/09-sim-syscall_priority_pre.py +++ b/tests/09-sim-syscall_priority_pre.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env/python3 # # Seccomp Library test program diff --git a/tests/10-sim-syscall_priority_post.py b/tests/10-sim-syscall_priority_post.py index 01292d48..96ec1de4 100755 --- a/tests/10-sim-syscall_priority_post.py +++ b/tests/10-sim-syscall_priority_post.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env/python3 # # Seccomp Library test program diff --git a/tests/11-basic-basic_errors.py b/tests/11-basic-basic_errors.py index 7cf502d0..fab7231c 100755 --- a/tests/11-basic-basic_errors.py +++ b/tests/11-basic-basic_errors.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env/python3 # # Seccomp Library test program diff --git a/tests/12-sim-basic_masked_ops.py b/tests/12-sim-basic_masked_ops.py index 48cf63a8..4a28ca29 100755 --- a/tests/12-sim-basic_masked_ops.py +++ b/tests/12-sim-basic_masked_ops.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env/python3 # # Seccomp Library test program diff --git a/tests/13-basic-attrs.py b/tests/13-basic-attrs.py index abf4b68c..f96a48a5 100755 --- a/tests/13-basic-attrs.py +++ b/tests/13-basic-attrs.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env/python3 # # Seccomp Library test program diff --git a/tests/14-sim-reset.py b/tests/14-sim-reset.py index 66463c82..7b675d86 100755 --- a/tests/14-sim-reset.py +++ b/tests/14-sim-reset.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env/python3 # # Seccomp Library test program diff --git a/tests/15-basic-resolver.py b/tests/15-basic-resolver.py index 3ce3389c..fadc0f30 100755 --- a/tests/15-basic-resolver.py +++ b/tests/15-basic-resolver.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env/python3 # # Seccomp Library test program diff --git a/tests/16-sim-arch_basic.py b/tests/16-sim-arch_basic.py index 79e68541..259067e6 100755 --- a/tests/16-sim-arch_basic.py +++ b/tests/16-sim-arch_basic.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env/python3 # # Seccomp Library test program diff --git a/tests/17-sim-arch_merge.py b/tests/17-sim-arch_merge.py index 24f2f6a7..b21c780b 100755 --- a/tests/17-sim-arch_merge.py +++ b/tests/17-sim-arch_merge.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env/python3 # # Seccomp Library test program diff --git a/tests/18-sim-basic_allowlist.py b/tests/18-sim-basic_allowlist.py index dbee3acd..339c6db5 100755 --- a/tests/18-sim-basic_allowlist.py +++ b/tests/18-sim-basic_allowlist.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env/python3 # # Seccomp Library test program diff --git a/tests/19-sim-missing_syscalls.py b/tests/19-sim-missing_syscalls.py index aa888da4..254cc9c8 100755 --- a/tests/19-sim-missing_syscalls.py +++ b/tests/19-sim-missing_syscalls.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env/python3 # # Seccomp Library test program diff --git a/tests/20-live-basic_die.py b/tests/20-live-basic_die.py index 26013f6b..0711639d 100755 --- a/tests/20-live-basic_die.py +++ b/tests/20-live-basic_die.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env/python3 # # Seccomp Library test program diff --git a/tests/21-live-basic_allow.py b/tests/21-live-basic_allow.py index 3bf53172..91f14a63 100755 --- a/tests/21-live-basic_allow.py +++ b/tests/21-live-basic_allow.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env/python3 # # Seccomp Library test program diff --git a/tests/22-sim-basic_chains_array.py b/tests/22-sim-basic_chains_array.py index bde2461a..b56d3393 100755 --- a/tests/22-sim-basic_chains_array.py +++ b/tests/22-sim-basic_chains_array.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env/python3 # # Seccomp Library test program diff --git a/tests/23-sim-arch_all_le_basic.py b/tests/23-sim-arch_all_le_basic.py index 783dc251..902508a9 100755 --- a/tests/23-sim-arch_all_le_basic.py +++ b/tests/23-sim-arch_all_le_basic.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env/python3 # # Seccomp Library test program diff --git a/tests/24-live-arg_allow.py b/tests/24-live-arg_allow.py index 42d2389d..3708e154 100755 --- a/tests/24-live-arg_allow.py +++ b/tests/24-live-arg_allow.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env/python3 # # Seccomp Library test program diff --git a/tests/25-sim-multilevel_chains_adv.py b/tests/25-sim-multilevel_chains_adv.py index 2657e9af..f6041796 100755 --- a/tests/25-sim-multilevel_chains_adv.py +++ b/tests/25-sim-multilevel_chains_adv.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env/python3 # # Seccomp Library test program diff --git a/tests/26-sim-arch_all_be_basic.py b/tests/26-sim-arch_all_be_basic.py index 2afa93ad..427d31b6 100755 --- a/tests/26-sim-arch_all_be_basic.py +++ b/tests/26-sim-arch_all_be_basic.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env/python3 # # Seccomp Library test program diff --git a/tests/27-sim-bpf_blk_state.py b/tests/27-sim-bpf_blk_state.py index 5967f62e..81e694ae 100755 --- a/tests/27-sim-bpf_blk_state.py +++ b/tests/27-sim-bpf_blk_state.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env/python3 # # Seccomp Library test program diff --git a/tests/28-sim-arch_x86.py b/tests/28-sim-arch_x86.py index f133c959..8e7ec278 100755 --- a/tests/28-sim-arch_x86.py +++ b/tests/28-sim-arch_x86.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env/python3 # # Seccomp Library test program diff --git a/tests/29-sim-pseudo_syscall.py b/tests/29-sim-pseudo_syscall.py index 74ffc61d..f1b706cf 100755 --- a/tests/29-sim-pseudo_syscall.py +++ b/tests/29-sim-pseudo_syscall.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env/python3 # # Seccomp Library test program diff --git a/tests/30-sim-socket_syscalls.py b/tests/30-sim-socket_syscalls.py index 16ba3575..183be5b1 100755 --- a/tests/30-sim-socket_syscalls.py +++ b/tests/30-sim-socket_syscalls.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env/python3 # # Seccomp Library test program diff --git a/tests/31-basic-version_check.py b/tests/31-basic-version_check.py index e958bf1e..1186ef31 100755 --- a/tests/31-basic-version_check.py +++ b/tests/31-basic-version_check.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env/python3 # # Seccomp Library test program diff --git a/tests/32-live-tsync_allow.py b/tests/32-live-tsync_allow.py index da8d4cb8..27027ee1 100755 --- a/tests/32-live-tsync_allow.py +++ b/tests/32-live-tsync_allow.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env/python3 # # Seccomp Library test program diff --git a/tests/33-sim-socket_syscalls_be.py b/tests/33-sim-socket_syscalls_be.py index c3cd6287..9c0d5f55 100755 --- a/tests/33-sim-socket_syscalls_be.py +++ b/tests/33-sim-socket_syscalls_be.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env/python3 # # Seccomp Library test program diff --git a/tests/34-sim-basic_denylist.py b/tests/34-sim-basic_denylist.py index 05a202dd..26883586 100755 --- a/tests/34-sim-basic_denylist.py +++ b/tests/34-sim-basic_denylist.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env/python3 # # Seccomp Library test program diff --git a/tests/35-sim-negative_one.py b/tests/35-sim-negative_one.py index d94fda57..44fb6b51 100755 --- a/tests/35-sim-negative_one.py +++ b/tests/35-sim-negative_one.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env/python3 # # Seccomp Library test program diff --git a/tests/36-sim-ipc_syscalls.py b/tests/36-sim-ipc_syscalls.py index d36853b6..d370d40e 100755 --- a/tests/36-sim-ipc_syscalls.py +++ b/tests/36-sim-ipc_syscalls.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env/python3 # # Seccomp Library test program diff --git a/tests/37-sim-ipc_syscalls_be.py b/tests/37-sim-ipc_syscalls_be.py index 18a09d0a..88aec6a6 100755 --- a/tests/37-sim-ipc_syscalls_be.py +++ b/tests/37-sim-ipc_syscalls_be.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env/python3 # # Seccomp Library test program diff --git a/tests/39-basic-api_level.py b/tests/39-basic-api_level.py index 93f3d7b5..b5386a7f 100755 --- a/tests/39-basic-api_level.py +++ b/tests/39-basic-api_level.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env/python3 # # Seccomp Library test program diff --git a/tests/40-sim-log.py b/tests/40-sim-log.py index 63b217e4..0c750cb5 100755 --- a/tests/40-sim-log.py +++ b/tests/40-sim-log.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env/python3 # # Seccomp Library test program diff --git a/tests/41-sim-syscall_priority_arch.py b/tests/41-sim-syscall_priority_arch.py index a865a5e4..75f30bb2 100755 --- a/tests/41-sim-syscall_priority_arch.py +++ b/tests/41-sim-syscall_priority_arch.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env/python3 # # Seccomp Library test program diff --git a/tests/42-sim-adv_chains.py b/tests/42-sim-adv_chains.py index 83e5a181..2358d8c6 100755 --- a/tests/42-sim-adv_chains.py +++ b/tests/42-sim-adv_chains.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env/python3 # # Seccomp Library test program diff --git a/tests/43-sim-a2_order.py b/tests/43-sim-a2_order.py index 7cc5f94d..fb0d937b 100755 --- a/tests/43-sim-a2_order.py +++ b/tests/43-sim-a2_order.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env/python3 # # Seccomp Library test program diff --git a/tests/44-live-a2_order.py b/tests/44-live-a2_order.py index 4bd56a19..e4dbbf61 100755 --- a/tests/44-live-a2_order.py +++ b/tests/44-live-a2_order.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env/python3 # # Seccomp Library test program diff --git a/tests/45-sim-chain_code_coverage.py b/tests/45-sim-chain_code_coverage.py index 32ea5478..1856884e 100755 --- a/tests/45-sim-chain_code_coverage.py +++ b/tests/45-sim-chain_code_coverage.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env/python3 # # Seccomp Library test program diff --git a/tests/46-sim-kill_process.py b/tests/46-sim-kill_process.py index 81b72bed..d979b85b 100755 --- a/tests/46-sim-kill_process.py +++ b/tests/46-sim-kill_process.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env/python3 # # Seccomp Library test program diff --git a/tests/47-live-kill_process.py b/tests/47-live-kill_process.py index 8c62ee7c..07fb7360 100755 --- a/tests/47-live-kill_process.py +++ b/tests/47-live-kill_process.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env/python3 # # Seccomp Library test program diff --git a/tests/48-sim-32b_args.py b/tests/48-sim-32b_args.py index 486c4888..52bd29b4 100755 --- a/tests/48-sim-32b_args.py +++ b/tests/48-sim-32b_args.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env/python3 # # Seccomp Library test program diff --git a/tests/49-sim-64b_comparisons.py b/tests/49-sim-64b_comparisons.py index 054cdea5..f1c574f1 100755 --- a/tests/49-sim-64b_comparisons.py +++ b/tests/49-sim-64b_comparisons.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env/python3 # # Seccomp Library test program diff --git a/tests/50-sim-hash_collision.py b/tests/50-sim-hash_collision.py index d3c5f2fb..7aea2e02 100755 --- a/tests/50-sim-hash_collision.py +++ b/tests/50-sim-hash_collision.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env/python3 # # Seccomp Library test program diff --git a/tests/51-live-user_notification.py b/tests/51-live-user_notification.py index 3449c44c..677ce310 100755 --- a/tests/51-live-user_notification.py +++ b/tests/51-live-user_notification.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env/python3 # # Seccomp Library test program diff --git a/tests/52-basic-load.py b/tests/52-basic-load.py index 4395a79f..e8d4abba 100755 --- a/tests/52-basic-load.py +++ b/tests/52-basic-load.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env/python3 # # Seccomp Library test program diff --git a/tests/53-sim-binary_tree.py b/tests/53-sim-binary_tree.py index 8cda8107..d1447892 100755 --- a/tests/53-sim-binary_tree.py +++ b/tests/53-sim-binary_tree.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env/python3 # # Seccomp Library test program diff --git a/tests/54-live-binary_tree.py b/tests/54-live-binary_tree.py index 2bc7386a..05fd6b60 100755 --- a/tests/54-live-binary_tree.py +++ b/tests/54-live-binary_tree.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env/python3 # # Seccomp Library test program diff --git a/tests/56-basic-iterate_syscalls.py b/tests/56-basic-iterate_syscalls.py index d69dd0cf..fd32390c 100755 --- a/tests/56-basic-iterate_syscalls.py +++ b/tests/56-basic-iterate_syscalls.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env/python3 # # Seccomp Library test program diff --git a/tests/57-basic-rawsysrc.py b/tests/57-basic-rawsysrc.py index a88461a4..8ce9a473 100755 --- a/tests/57-basic-rawsysrc.py +++ b/tests/57-basic-rawsysrc.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env/python3 # # Seccomp Library test program diff --git a/tests/58-live-tsync_notify.py b/tests/58-live-tsync_notify.py index ae01b062..0649ec25 100755 --- a/tests/58-live-tsync_notify.py +++ b/tests/58-live-tsync_notify.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env/python3 # # Seccomp Library test program diff --git a/tests/59-basic-empty_binary_tree.py b/tests/59-basic-empty_binary_tree.py index 5acbbd44..385f4f27 100755 --- a/tests/59-basic-empty_binary_tree.py +++ b/tests/59-basic-empty_binary_tree.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env/python3 # # Seccomp Library test program diff --git a/tests/60-sim-precompute.py b/tests/60-sim-precompute.py index bb2f4096..47e8b0eb 100755 --- a/tests/60-sim-precompute.py +++ b/tests/60-sim-precompute.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env/python3 # # Seccomp Library test program diff --git a/tests/61-sim-transactions.py b/tests/61-sim-transactions.py index 8ba16224..79077d8a 100755 --- a/tests/61-sim-transactions.py +++ b/tests/61-sim-transactions.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env/python3 # # Seccomp Library test program diff --git a/tests/62-sim-arch_transactions.py b/tests/62-sim-arch_transactions.py index f03f41d3..22d689bb 100755 --- a/tests/62-sim-arch_transactions.py +++ b/tests/62-sim-arch_transactions.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env/python3 # # Seccomp Library test program diff --git a/tests/regression b/tests/regression index c08a328e..3a662d43 100755 --- a/tests/regression +++ b/tests/regression @@ -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"