summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry V. Levin <ldv@strace.io>2022-07-01 08:00:00 +0000
committerDmitry V. Levin <ldv@strace.io>2022-07-01 08:00:00 +0000
commitf526864725dc7c3f720bae28a630d75ec365f069 (patch)
treed2ec2b83d960b3052c9afef95e65a71d32f2206c
parent960e78f208b4f6d48962bbc9cad45588cc8c90ad (diff)
downloadstrace-f526864725dc7c3f720bae28a630d75ec365f069.tar.gz
ci: try to make /dev/kvm more accessible
This might help to enable ioctl_kvm_run* tests in some ci environments. * ci/install-dependencies.sh: If /dev/kvm exists, try to make it more accessible by setting a permissive file access mode. Suggested-by: Alexey Gladkov <gladkov.alexey@gmail.com>
-rwxr-xr-xci/install-dependencies.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/ci/install-dependencies.sh b/ci/install-dependencies.sh
index 6b6dc02ee..e56f62a9a 100755
--- a/ci/install-dependencies.sh
+++ b/ci/install-dependencies.sh
@@ -150,3 +150,5 @@ case "${CHECK-}" in
apt_get_install valgrind
;;
esac
+
+[ -c /dev/kvm ] && $sudo chmod 666 /dev/kvm ||: