run: support shell=True and add unit tests

and also fix sudo which is hard to cover by unit tests.

Merge request reports

Loading