-
Committer:
Scott Moser
-
Date:
2017-02-10 20:55:59 UTC
-
mfrom:
(463.1.3 trunk.subp-coverage)
-
Revision ID:
smoser@ubuntu.com-20170210205559-4vtszujeus6oxxjz
unittests: add subp coverage for retries, and rcs
This adds unit tests that verify correct behavior of subp with
test_rcs_not_in_list_raise : subp(["sh", "-c", "exit 1"], rcs=[8])
test_rcs_other_than_zero_work: subp(["sh", "-c", "exit 8"], rcs=[8])
test_retry_none_does_not_retry: subp(["false"], retries=None)
test_retry_does_retry: subp(["pass-on-try-2", retries=[1,0])