diff options
author | Giuseppe Scrivano <gscrivan@redhat.com> | 2022-06-30 23:18:45 +0200 |
---|---|---|
committer | Giuseppe Scrivano <gscrivan@redhat.com> | 2022-07-01 09:28:18 +0200 |
commit | 891dfd3a8f85c576ce6427b8dd9811b933d525d3 (patch) | |
tree | d8a0afdc6e9fa0603e3b414e65be59b954f62a48 /test | |
parent | 3426d56b92be2ac1c3cc62fc578e9cb6d64aca81 (diff) | |
download | podman-891dfd3a8f85c576ce6427b8dd9811b933d525d3.tar.gz podman-891dfd3a8f85c576ce6427b8dd9811b933d525d3.tar.bz2 podman-891dfd3a8f85c576ce6427b8dd9811b933d525d3.zip |
specgen: fix parsing of cgroup devices rule
Fix the parse for the cgroup devices rule to correctly handle the
wildcard syntax for the device major.
Also make sure the device major and minor are not negative numbers.
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/system/030-run.bats | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/system/030-run.bats b/test/system/030-run.bats index 56cf4f266..b3e3cef00 100644 --- a/test/system/030-run.bats +++ b/test/system/030-run.bats @@ -730,7 +730,7 @@ EOF run_podman 125 run --device-cgroup-rule="x 7:* rmw" --rm $IMAGE is "$output" "Error: invalid device type in device-access-add: x" run_podman 125 run --device-cgroup-rule="a a:* rmw" --rm $IMAGE - is "$output" "Error: strconv.ParseInt: parsing \"a\": invalid syntax" + is "$output" "Error: strconv.ParseUint: parsing \"a\": invalid syntax" } @test "podman run closes stdin" { |