run_stub: refactor some code to run() function
run_stub: refactor some code to run() function

Just to keep the code simple. No functional changes.

Signed-off-by: Kalle Valo <7081a7d99b8c74c0698a728df19e3915a995d7e1@codeaurora.org>

kvalo/pwcli,kvalo/pwcli