There was an error while loading. Please reload this page.
1 parent b484c8b commit 35ab4dcCopy full SHA for 35ab4dc
1 file changed
hack/lib/test.sh
@@ -174,9 +174,9 @@ hyper::test::remove_container_with_volume() {
174
hyper::test::imageuser() {
175
echo "Pod image user config test"
176
# 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
+ # 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
180
test $res -eq 0
181
}
182
0 commit comments