Skip to content
This repository has been archived by the owner on Feb 8, 2021. It is now read-only.

Commit

Permalink
CI: fix the issue of missing 'ps' command in irssi:1 image
Browse files Browse the repository at this point in the history
The image irssi:1 didn't have 'ps' command, thus using
'whoami' to verify the user.

Signed-off-by: fupan <[email protected]>
  • Loading branch information
lifupan committed Jul 19, 2018
1 parent 6288765 commit fb957e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hack/lib/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ hyper::test::imageuser() {
echo "Pod image user config test"
# irssi image has "User": "user"
id=$(sudo hyperctl run -d --env="TERM=xterm" irssi:1 | sed -ne "s/POD id is \(.*\)/\1/p")
res=$(sudo hyperctl exec $id ps aux | grep user > /dev/null 2>&1; echo $?)
res=$(sudo hyperctl exec $id whoami | grep user > /dev/null 2>&1; echo $?)
sudo hyperctl rm $id
test $res -eq 0
}
Expand Down

0 comments on commit fb957e4

Please sign in to comment.