The method of using -device $NAME -S -monitor stdio does not work
on all supported platforms (EL7), and does not work correctly on
Fedora 34 and later. Instead, grab and parse the output of qemucmd -device ? 2>&1 and look for matching name "$NAME",.
This replaces https://pagure.io/standard-test-roles/pull-request/406
The method of using
-device $NAME -S -monitor stdiodoes not workon all supported platforms (EL7), and does not work correctly on
Fedora 34 and later. Instead, grab and parse the output of
qemucmd -device ? 2>&1and look for matchingname "$NAME",.This replaces https://pagure.io/standard-test-roles/pull-request/406