github.com/kata-containers/tests@v0.0.0-20240307153542-772105b56064/integration/kubernetes/ro-volume-exp.sh (about) 1 #! /bin/bash 2 # 3 # Copyright (c) 2021 Ant Group 4 # 5 # SPDX-License-Identifier: Apache-2.0 6 # 7 8 TIMEOUT=${TIMEOUT:-60} 9 10 # A simple expect script to help validating readonly volumes 11 # Run with ro-volume-exp.sh <sandbox-id> <volume-suffix> <tmp-file> 12 expect -c " 13 set timeout $TIMEOUT 14 spawn kata-runtime exec $1 15 send \"cd /run/kata-containers/shared/containers/*$2/\n\" 16 send \"echo 1 > $3\n\" 17 send \"exit\n\" 18 interact 19 "