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

Commit 7ae5ddd

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 7ae5ddd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hack/lib/test.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ hyper::test::imageuser() {
175175
echo "Pod image user config test"
176176
# irssi image has "User": "user"
177177
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 $?)
178+
res=$(sudo hyperctl exec $id whoami | grep user > /dev/null 2>&1; echo $?)
179179
sudo hyperctl rm $id
180180
test $res -eq 0
181181
}

0 commit comments

Comments
 (0)