Skip to content

Commit

Permalink
Avoid escaping backslashes in regex for QEMU binary
Browse files Browse the repository at this point in the history
Co-authored-by: Tina Müller (tinita) <[email protected]>
  • Loading branch information
Martchus and perlpunk authored Sep 6, 2024
1 parent 58e9b7a commit b433124
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/OpenQA/Worker.pm
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,7 @@ sub is_stopping ($self) {
return $current_job->status eq 'stopping';
}

sub is_qemu ($executable_path) { defined $executable_path && $executable_path =~ /\/qemu-[^\/]+$/ }
sub is_qemu ($executable_path) { defined $executable_path && $executable_path =~ m{/qemu-[^/]+$} }

# checks whether a qemu instance using the current pool directory is running and returns its PID if that's the case
sub is_qemu_running ($self) {
Expand Down

0 comments on commit b433124

Please sign in to comment.