Skip to content

Commit

Permalink
tests/container: update grep for podman top
Browse files Browse the repository at this point in the history
Signed-off-by: danishprakash <[email protected]>
  • Loading branch information
danishprakash committed Mar 8, 2023
1 parent 1a0b5e2 commit a398857
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/containers/rootless_podman.pm
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,8 @@ sub verify_userid_on_container {
$cid = script_output "podman run -d --rm --name test2 --user 1000 $image sleep infinity";
$cid = check_bsc1200623($cid);
my $id = $start_id + $huser_id - 1;
validate_script_output "podman top $cid user huser", sub { /1000\s+${id}/ };
my $huser_name = script_output "echo \$USERNAME";
validate_script_output "podman top $cid user huser", sub { /${huser_name}\s+${id}/ };
validate_script_output "podman top $cid capeff", sub { /none/ };

record_info "root with keep-id", "the default user(root) starts process with the same uid as host user";
Expand Down

0 comments on commit a398857

Please sign in to comment.