project/qemu: Fix default arguments in Runner.run

The qemu.Runner.run(...) method uses empty lists but the argparser
uses None as the default value for --shell-command and --boot-test.
Since use of empty lists as default values is discouraged, change
the default values to None. This change also simplifies the logic
inside the run method by raising exceptions early and using if
statements instead of one big match statement.

Bug: None
Test: build a project and call the run script from the build output
      folder while passing `--shell-command ls` to the run script.
Change-Id: I854ca4eec741d5882c98119a1ec772e55a440acc
1 file changed
tree: ec4da68508de4fa29a07be7eeae9c9739ca868d7
  1. project/
  2. .clang-format
  3. LICENSE
  4. PREUPLOAD.cfg