arcyd-tester: refactor, extract 'run_once'

Test Plan:
$ ./precommit.sh