mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-22 05:28:25 +00:00
test: vfio: Attempt to fix logic
This was checking that a literal string was non-zero. I'm assume it instead wanted to check if the file exists Signed-off-by: stevenhorsman <steven@uk.ibm.com>
This commit is contained in:
parent
b220cca253
commit
9a9e88a38d
@ -316,7 +316,7 @@ main() {
|
||||
vfio_major="$(printf '%d' $(stat -c '0x%t' ${vfio_device}))"
|
||||
vfio_minor="$(printf '%d' $(stat -c '0x%T' ${vfio_device}))"
|
||||
|
||||
[ -n "/dev/vfio/vfio" ] || die "vfio control device not found"
|
||||
[[ -f "/dev/vfio/vfio" ]] || die "vfio control device not found"
|
||||
vfio_ctl_major="$(printf '%d' $(stat -c '0x%t' /dev/vfio/vfio))"
|
||||
vfio_ctl_minor="$(printf '%d' $(stat -c '0x%T' /dev/vfio/vfio))"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user