]> git.proxmox.com Git - mirror_qemu.git/commit
device-crash-test: Check if path is actually an executable file
authorEduardo Habkost <ehabkost@redhat.com>
Mon, 26 Oct 2020 12:52:38 +0000 (08:52 -0400)
committerThomas Huth <thuth@redhat.com>
Mon, 9 Nov 2020 17:34:21 +0000 (18:34 +0100)
commit8a47836548851ac00863a4f520ad761253ea4a86
treeed8f89b496aae57c84aea746902e49e34043d8ef
parent45716765b1d0bb1741688e5347aea967b9492d28
device-crash-test: Check if path is actually an executable file

After the transition to Meson, the build directory now have
subdirectories named "qemu-system-*.p", and device-crash-test
will try to execute them as if they were binaries.  This results
in errors like:

  PermissionError: [Errno 13] Permission denied: './qemu-system-or1k.p'

When generating the default list of binaries to test, check if
the path is actually a file and if it's executable.

Reported-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Message-Id: <20201026125238.2752882-1-ehabkost@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
scripts/device-crash-test