@@ -57,12 +57,12 @@ teardown() {
57
57
default_container=" $( get_system_id) -toolbox-$( get_system_version) "
58
58
59
59
create_default_container
60
- container_root_file_system=" $( " $PODMAN " unshare " $PODMAN " mount " $default_container " ) "
60
+ container_root_file_system=" $( podman unshare podman mount " $default_container " ) "
61
61
62
62
" $TOOLBX " run true
63
63
64
- run --keep-empty-lines --separate-stderr " $PODMAN " unshare cat " $container_root_file_system /etc/shadow"
65
- " $PODMAN " unshare " $PODMAN " unmount " $default_container "
64
+ run --keep-empty-lines --separate-stderr podman unshare cat " $container_root_file_system /etc/shadow"
65
+ podman unshare podman unmount " $default_container "
66
66
67
67
assert_success
68
68
assert_line --regexp ' ^root::.+$'
@@ -75,12 +75,12 @@ teardown() {
75
75
# bats test_tags=arch-fedora
76
76
@test " user: root in shadow(5) inside Arch Linux" {
77
77
create_distro_container arch latest arch-toolbox-latest
78
- container_root_file_system=" $( " $PODMAN " unshare " $PODMAN " mount arch-toolbox-latest) "
78
+ container_root_file_system=" $( podman unshare podman mount arch-toolbox-latest) "
79
79
80
80
" $TOOLBX " run --distro arch true
81
81
82
- run --keep-empty-lines --separate-stderr " $PODMAN " unshare cat " $container_root_file_system /etc/shadow"
83
- " $PODMAN " unshare " $PODMAN " unmount arch-toolbox-latest
82
+ run --keep-empty-lines --separate-stderr podman unshare cat " $container_root_file_system /etc/shadow"
83
+ podman unshare podman unmount arch-toolbox-latest
84
84
85
85
assert_success
86
86
assert_line --regexp ' ^root::.+$'
@@ -93,12 +93,12 @@ teardown() {
93
93
# bats test_tags=arch-fedora
94
94
@test " user: root in shadow(5) inside Fedora 34" {
95
95
create_distro_container fedora 34 fedora-toolbox-34
96
- container_root_file_system=" $( " $PODMAN " unshare " $PODMAN " mount fedora-toolbox-34) "
96
+ container_root_file_system=" $( podman unshare podman mount fedora-toolbox-34) "
97
97
98
98
" $TOOLBX " run --distro fedora --release 34 true
99
99
100
- run --keep-empty-lines --separate-stderr " $PODMAN " unshare cat " $container_root_file_system /etc/shadow"
101
- " $PODMAN " unshare " $PODMAN " unmount fedora-toolbox-34
100
+ run --keep-empty-lines --separate-stderr podman unshare cat " $container_root_file_system /etc/shadow"
101
+ podman unshare podman unmount fedora-toolbox-34
102
102
103
103
assert_success
104
104
assert_line --regexp ' ^root::.+$'
@@ -111,12 +111,12 @@ teardown() {
111
111
# bats test_tags=arch-fedora
112
112
@test " user: root in shadow(5) inside RHEL 8.10" {
113
113
create_distro_container rhel 8.10 rhel-toolbox-8.10
114
- container_root_file_system=" $( " $PODMAN " unshare " $PODMAN " mount rhel-toolbox-8.10) "
114
+ container_root_file_system=" $( podman unshare podman mount rhel-toolbox-8.10) "
115
115
116
116
" $TOOLBX " run --distro rhel --release 8.10 true
117
117
118
- run --keep-empty-lines --separate-stderr " $PODMAN " unshare cat " $container_root_file_system /etc/shadow"
119
- " $PODMAN " unshare " $PODMAN " unmount rhel-toolbox-8.10
118
+ run --keep-empty-lines --separate-stderr podman unshare cat " $container_root_file_system /etc/shadow"
119
+ podman unshare podman unmount rhel-toolbox-8.10
120
120
121
121
assert_success
122
122
assert_line --regexp ' ^root::.+$'
@@ -129,12 +129,12 @@ teardown() {
129
129
# bats test_tags=ubuntu
130
130
@test " user: root in shadow(5) inside Ubuntu 16.04" {
131
131
create_distro_container ubuntu 16.04 ubuntu-toolbox-16.04
132
- container_root_file_system=" $( " $PODMAN " unshare " $PODMAN " mount ubuntu-toolbox-16.04) "
132
+ container_root_file_system=" $( podman unshare podman mount ubuntu-toolbox-16.04) "
133
133
134
134
" $TOOLBX " run --distro ubuntu --release 16.04 true
135
135
136
- run --keep-empty-lines --separate-stderr " $PODMAN " unshare cat " $container_root_file_system /etc/shadow"
137
- " $PODMAN " unshare " $PODMAN " unmount ubuntu-toolbox-16.04
136
+ run --keep-empty-lines --separate-stderr podman unshare cat " $container_root_file_system /etc/shadow"
137
+ podman unshare podman unmount ubuntu-toolbox-16.04
138
138
139
139
assert_success
140
140
assert_line --regexp ' ^root::.+$'
@@ -147,12 +147,12 @@ teardown() {
147
147
# bats test_tags=ubuntu
148
148
@test " user: root in shadow(5) inside Ubuntu 18.04" {
149
149
create_distro_container ubuntu 18.04 ubuntu-toolbox-18.04
150
- container_root_file_system=" $( " $PODMAN " unshare " $PODMAN " mount ubuntu-toolbox-18.04) "
150
+ container_root_file_system=" $( podman unshare podman mount ubuntu-toolbox-18.04) "
151
151
152
152
" $TOOLBX " run --distro ubuntu --release 18.04 true
153
153
154
- run --keep-empty-lines --separate-stderr " $PODMAN " unshare cat " $container_root_file_system /etc/shadow"
155
- " $PODMAN " unshare " $PODMAN " unmount ubuntu-toolbox-18.04
154
+ run --keep-empty-lines --separate-stderr podman unshare cat " $container_root_file_system /etc/shadow"
155
+ podman unshare podman unmount ubuntu-toolbox-18.04
156
156
157
157
assert_success
158
158
assert_line --regexp ' ^root::.+$'
@@ -165,12 +165,12 @@ teardown() {
165
165
# bats test_tags=ubuntu
166
166
@test " user: root in shadow(5) inside Ubuntu 20.04" {
167
167
create_distro_container ubuntu 20.04 ubuntu-toolbox-20.04
168
- container_root_file_system=" $( " $PODMAN " unshare " $PODMAN " mount ubuntu-toolbox-20.04) "
168
+ container_root_file_system=" $( podman unshare podman mount ubuntu-toolbox-20.04) "
169
169
170
170
" $TOOLBX " run --distro ubuntu --release 20.04 true
171
171
172
- run --keep-empty-lines --separate-stderr " $PODMAN " unshare cat " $container_root_file_system /etc/shadow"
173
- " $PODMAN " unshare " $PODMAN " unmount ubuntu-toolbox-20.04
172
+ run --keep-empty-lines --separate-stderr podman unshare cat " $container_root_file_system /etc/shadow"
173
+ podman unshare podman unmount ubuntu-toolbox-20.04
174
174
175
175
assert_success
176
176
assert_line --regexp ' ^root::.+$'
@@ -326,12 +326,12 @@ teardown() {
326
326
default_container=" $( get_system_id) -toolbox-$( get_system_version) "
327
327
328
328
create_default_container
329
- container_root_file_system=" $( " $PODMAN " unshare " $PODMAN " mount " $default_container " ) "
329
+ container_root_file_system=" $( podman unshare podman mount " $default_container " ) "
330
330
331
331
" $TOOLBX " run true
332
332
333
- run --keep-empty-lines --separate-stderr " $PODMAN " unshare cat " $container_root_file_system /etc/shadow"
334
- " $PODMAN " unshare " $PODMAN " unmount " $default_container "
333
+ run --keep-empty-lines --separate-stderr podman unshare cat " $container_root_file_system /etc/shadow"
334
+ podman unshare podman unmount " $default_container "
335
335
336
336
assert_success
337
337
refute_line --regexp " ^$USER :.*$"
@@ -344,12 +344,12 @@ teardown() {
344
344
# bats test_tags=arch-fedora
345
345
@test " user: $USER in shadow(5) inside Arch Linux" {
346
346
create_distro_container arch latest arch-toolbox-latest
347
- container_root_file_system=" $( " $PODMAN " unshare " $PODMAN " mount arch-toolbox-latest) "
347
+ container_root_file_system=" $( podman unshare podman mount arch-toolbox-latest) "
348
348
349
349
" $TOOLBX " run --distro arch true
350
350
351
- run --keep-empty-lines --separate-stderr " $PODMAN " unshare cat " $container_root_file_system /etc/shadow"
352
- " $PODMAN " unshare " $PODMAN " unmount arch-toolbox-latest
351
+ run --keep-empty-lines --separate-stderr podman unshare cat " $container_root_file_system /etc/shadow"
352
+ podman unshare podman unmount arch-toolbox-latest
353
353
354
354
assert_success
355
355
refute_line --regexp " ^$USER :.*$"
@@ -362,12 +362,12 @@ teardown() {
362
362
# bats test_tags=arch-fedora
363
363
@test " user: $USER in shadow(5) inside Fedora 34" {
364
364
create_distro_container fedora 34 fedora-toolbox-34
365
- container_root_file_system=" $( " $PODMAN " unshare " $PODMAN " mount fedora-toolbox-34) "
365
+ container_root_file_system=" $( podman unshare podman mount fedora-toolbox-34) "
366
366
367
367
" $TOOLBX " run --distro fedora --release 34 true
368
368
369
- run --keep-empty-lines --separate-stderr " $PODMAN " unshare cat " $container_root_file_system /etc/shadow"
370
- " $PODMAN " unshare " $PODMAN " unmount fedora-toolbox-34
369
+ run --keep-empty-lines --separate-stderr podman unshare cat " $container_root_file_system /etc/shadow"
370
+ podman unshare podman unmount fedora-toolbox-34
371
371
372
372
assert_success
373
373
refute_line --regexp " ^$USER :.*$"
@@ -380,12 +380,12 @@ teardown() {
380
380
# bats test_tags=arch-fedora
381
381
@test " user: $USER in shadow(5) inside RHEL 8.10" {
382
382
create_distro_container rhel 8.10 rhel-toolbox-8.10
383
- container_root_file_system=" $( " $PODMAN " unshare " $PODMAN " mount rhel-toolbox-8.10) "
383
+ container_root_file_system=" $( podman unshare podman mount rhel-toolbox-8.10) "
384
384
385
385
" $TOOLBX " run --distro rhel --release 8.10 true
386
386
387
- run --keep-empty-lines --separate-stderr " $PODMAN " unshare cat " $container_root_file_system /etc/shadow"
388
- " $PODMAN " unshare " $PODMAN " unmount rhel-toolbox-8.10
387
+ run --keep-empty-lines --separate-stderr podman unshare cat " $container_root_file_system /etc/shadow"
388
+ podman unshare podman unmount rhel-toolbox-8.10
389
389
390
390
assert_success
391
391
refute_line --regexp " ^$USER :.*$"
@@ -398,12 +398,12 @@ teardown() {
398
398
# bats test_tags=ubuntu
399
399
@test " user: $USER in shadow(5) inside Ubuntu 16.04" {
400
400
create_distro_container ubuntu 16.04 ubuntu-toolbox-16.04
401
- container_root_file_system=" $( " $PODMAN " unshare " $PODMAN " mount ubuntu-toolbox-16.04) "
401
+ container_root_file_system=" $( podman unshare podman mount ubuntu-toolbox-16.04) "
402
402
403
403
" $TOOLBX " run --distro ubuntu --release 16.04 true
404
404
405
- run --keep-empty-lines --separate-stderr " $PODMAN " unshare cat " $container_root_file_system /etc/shadow"
406
- " $PODMAN " unshare " $PODMAN " unmount ubuntu-toolbox-16.04
405
+ run --keep-empty-lines --separate-stderr podman unshare cat " $container_root_file_system /etc/shadow"
406
+ podman unshare podman unmount ubuntu-toolbox-16.04
407
407
408
408
assert_success
409
409
refute_line --regexp " ^$USER :.*$"
@@ -416,12 +416,12 @@ teardown() {
416
416
# bats test_tags=ubuntu
417
417
@test " user: $USER in shadow(5) inside Ubuntu 18.04" {
418
418
create_distro_container ubuntu 18.04 ubuntu-toolbox-18.04
419
- container_root_file_system=" $( " $PODMAN " unshare " $PODMAN " mount ubuntu-toolbox-18.04) "
419
+ container_root_file_system=" $( podman unshare podman mount ubuntu-toolbox-18.04) "
420
420
421
421
" $TOOLBX " run --distro ubuntu --release 18.04 true
422
422
423
- run --keep-empty-lines --separate-stderr " $PODMAN " unshare cat " $container_root_file_system /etc/shadow"
424
- " $PODMAN " unshare " $PODMAN " unmount ubuntu-toolbox-18.04
423
+ run --keep-empty-lines --separate-stderr podman unshare cat " $container_root_file_system /etc/shadow"
424
+ podman unshare podman unmount ubuntu-toolbox-18.04
425
425
426
426
assert_success
427
427
refute_line --regexp " ^$USER :.*$"
@@ -434,12 +434,12 @@ teardown() {
434
434
# bats test_tags=ubuntu
435
435
@test " user: $USER in shadow(5) inside Ubuntu 20.04" {
436
436
create_distro_container ubuntu 20.04 ubuntu-toolbox-20.04
437
- container_root_file_system=" $( " $PODMAN " unshare " $PODMAN " mount ubuntu-toolbox-20.04) "
437
+ container_root_file_system=" $( podman unshare podman mount ubuntu-toolbox-20.04) "
438
438
439
439
" $TOOLBX " run --distro ubuntu --release 20.04 true
440
440
441
- run --keep-empty-lines --separate-stderr " $PODMAN " unshare cat " $container_root_file_system /etc/shadow"
442
- " $PODMAN " unshare " $PODMAN " unmount ubuntu-toolbox-20.04
441
+ run --keep-empty-lines --separate-stderr podman unshare cat " $container_root_file_system /etc/shadow"
442
+ podman unshare podman unmount ubuntu-toolbox-20.04
443
443
444
444
assert_success
445
445
refute_line --regexp " ^$USER :.*$"
0 commit comments