File tree Expand file tree Collapse file tree 3 files changed +1
-30
lines changed Expand file tree Collapse file tree 3 files changed +1
-30
lines changed Original file line number Diff line number Diff line change @@ -778,11 +778,7 @@ nameserver 8.8.8.8" "nameserver order is correct"
778
778
fi
779
779
# pasta only works rootless
780
780
if is_rootless; then
781
- if has_pasta; then
782
- netmodes+=(" pasta" )
783
- else
784
- echo " # WARNING: pasta unavailable!" >&3
785
- fi
781
+ netmodes+=(" pasta" )
786
782
fi
787
783
788
784
for netmode in " ${netmodes[@]} " ; do
@@ -1112,7 +1108,6 @@ function wait_for_restart_count() {
1112
1108
@test " Podman unshare --rootless-netns with Pasta" {
1113
1109
skip_if_remote " unshare is local-only"
1114
1110
skip_if_not_rootless " pasta networking only available in rootless mode"
1115
- skip_if_no_pasta " pasta not found; this test requires pasta"
1116
1111
1117
1112
pasta_iface=$( default_ifname 4)
1118
1113
assert " $pasta_iface " ! = " " " pasta_iface is set"
Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ load helpers.network
16
16
function setup() {
17
17
basic_setup
18
18
skip_if_not_rootless " pasta networking only available in rootless mode"
19
- skip_if_no_pasta " pasta not found: install pasta(1) to run these tests"
20
19
21
20
XFER_FILE=" ${PODMAN_TMPDIR} /pasta.bin"
22
21
}
Original file line number Diff line number Diff line change 1
1
# -*- bash -*-
2
2
3
- _cached_has_pasta=
4
3
_cached_has_slirp4netns=
5
4
6
5
# ## Feature Checks #############################################################
@@ -45,28 +44,6 @@ function has_slirp4netns() {
45
44
test " $_cached_has_slirp4netns " = " y"
46
45
}
47
46
48
- # has_pasta() - Check if the pasta(1) command is available
49
- function has_pasta() {
50
- if [[ -z " $_cached_has_pasta " ]]; then
51
- _cached_has_pasta=n
52
- run_podman info --format ' {{.Host.Pasta.Executable}}'
53
- if [[ -n " $output " ]]; then
54
- _cached_has_pasta=y
55
- fi
56
- fi
57
- test " $_cached_has_pasta " = " y"
58
- }
59
-
60
- # skip_if_no_pasta() - Skip current test if pasta(1) is not available
61
- # $1: Optional message to display
62
- function skip_if_no_pasta() {
63
- if ! has_pasta; then
64
- local msg=$( _add_label_if_missing " $1 " " pasta" )
65
- skip " ${msg:- not applicable with no pasta binary} "
66
- fi
67
- }
68
-
69
-
70
47
# ## procfs access ##############################################################
71
48
72
49
# ipv6_to_procfs() - RFC 5952 IPv6 address text representation to procfs format
You can’t perform that action at this time.
0 commit comments