1
0

Set data permissions and output some additional log info during test run

Signed-off-by: James Ketrenos <james.p.ketrenos@intel.com>
This commit is contained in:
James Ketrenos 2020-01-28 11:42:07 -08:00
parent 7e76df4e77
commit 09ab6062ea
3 changed files with 9 additions and 2 deletions

View File

@ -79,7 +79,7 @@ QSV_DEVICE=${QSV_DEVICE:-/dev/dri/renderD128}
[ ! -e /data/"${arguments[0]}" ] && { [ ! -e /data/"${arguments[0]}" ] && {
cat << EOF cat << EOF
Error: '${arguments[0]}' not found. Error: '/data/${arguments[0]}' not found.
Was the volume /data mounted when launching the container? Was the volume /data mounted when launching the container?

View File

@ -70,7 +70,7 @@ QSV_DEVICE=${QSV_DEVICE:-/dev/dri/renderD128}
[ ! -d /data/. ] && { [ ! -d /data/. ] && {
cat << EOF cat << EOF
Error: '/data/' found. Error: '/data/' not found.
Was the volume /data mounted when launching the container? Was the volume /data mounted when launching the container?
@ -114,6 +114,9 @@ Error: Unable to download AUD_WM_E.264
EOF EOF
exit 2 exit 2
} }
echo "Download succeeded:"
ls -l /data
} }
tests=( tests=(
@ -124,6 +127,8 @@ tests=(
) )
for test in "${tests[@]}"; do for test in "${tests[@]}"; do
test=($test) test=($test)
echo "Executing test: ${test}"
echo "----------------------------------------------------"
/assets/commands/${test[*]} || { /assets/commands/${test[*]} || {
echo "Error: Test failed: ${test[*]}" echo "Error: Test failed: ${test[*]}"
exit 5 exit 5

View File

@ -35,6 +35,8 @@ ADD_GROUPS="--group-add ${VIDEO}"
[[ -e data/ ]] && rm -rf data [[ -e data/ ]] && rm -rf data
mkdir data || fail "Unable to make data volume directory" mkdir data || fail "Unable to make data volume directory"
chown :${VIDEO} data || fail "Unable to chown data volume to 'video' gid ${VIDEO}"
chmod g+rwX data || fail "Unable to chmod data volume to g+rwX"
CMD="docker run \ CMD="docker run \
${ADD_GROUPS} \ ${ADD_GROUPS} \