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 20, 2018
1 parent b484c8b commit 35ab4dc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hack/lib/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,9 @@ hyper::test::remove_container_with_volume() {
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 $?)
sudo hyperctl rm $id
# id=$(sudo hyperctl run -d --env="TERM=xterm" irssi:1 | sed -ne "s/POD id is \(.*\)/\1/p")
res=$(sudo hyperctl run --rm --env="TERM=xterm" irssi:1 whoami | grep user > /dev/null 2>&1; echo $?)
# sudo hyperctl rm $id
test $res -eq 0
}

Expand Down

0 comments on commit 35ab4dc

Please sign in to comment.