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 }