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

Commit 35ab4dc

Browse files
committed
CI: fix the issue of missing 'ps' command in irssi:1 image
The image irssi:1 didn't have 'ps' command, thus using 'whoami' to verify the user. Signed-off-by: fupan <[email protected]>
1 parent b484c8b commit 35ab4dc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: hack/lib/test.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -174,9 +174,9 @@ hyper::test::remove_container_with_volume() {
174174
hyper::test::imageuser() {
175175
echo "Pod image user config test"
176176
# irssi image has "User": "user"
177-
id=$(sudo hyperctl run -d --env="TERM=xterm" irssi:1 | sed -ne "s/POD id is \(.*\)/\1/p")
178-
res=$(sudo hyperctl exec $id ps aux | grep user > /dev/null 2>&1; echo $?)
179-
sudo hyperctl rm $id
177+
# id=$(sudo hyperctl run -d --env="TERM=xterm" irssi:1 | sed -ne "s/POD id is \(.*\)/\1/p")
178+
res=$(sudo hyperctl run --rm --env="TERM=xterm" irssi:1 whoami | grep user > /dev/null 2>&1; echo $?)
179+
# sudo hyperctl rm $id
180180
test $res -eq 0
181181
}
182182

0 commit comments

Comments
 (0)