run-tests: return a success error code when tests are skipped

Summary:
As run-tests.py will be used with testpilot and at diff time, we do not
want to fail a run when all the tests were simply skipped. Let's make
that a success instead.

Reviewed By: quark-zju

Differential Revision: D16364297

fbshipit-source-id: ef8e912ddde91bd5be52784fceaf012857841eea
This commit is contained in:
Xavier Deguillard 2019-07-18 15:50:43 -07:00 committed by Facebook Github Bot
parent 0720c26f71
commit f9b4c4917a

View File

@ -3454,7 +3454,7 @@ class TestRunner(object):
if failed:
return 1
elif allskipped:
return Test.SKIPPED_STATUS
return 0
elif errored:
return 2