From fb957e4c7269af26b6c637ac88c388d00920622f Mon Sep 17 00:00:00 2001 From: fupan Date: Thu, 19 Jul 2018 17:17:42 +0800 Subject: [PATCH] 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 --- hack/lib/test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hack/lib/test.sh b/hack/lib/test.sh index 754e18f3..22ede79a 100644 --- a/hack/lib/test.sh +++ b/hack/lib/test.sh @@ -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 }