Skip to content

Commit

Permalink
Return success if there are no test cases to run
Browse files Browse the repository at this point in the history
  • Loading branch information
sreecha committed Oct 22, 2015
1 parent 1190624 commit e6cd0e7
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions test/cpp/interop/stress_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,15 @@ int main(int argc, char** argv) {

// Parse test cases and weights
if (FLAGS_test_cases.length() == 0) {
gpr_log(GPR_INFO, "Cannot start the tests. Test cases string is empty");
return 1;
gpr_log(GPR_INFO, "Not running tests. The 'test_cases' string is empty");

// TODO(sreek): stress_tests is currently being run by run_tests.py in
// jenkins. There does not seem to be a straightforward way to skip this.
// So, for now, return 0 (i.e success) to keep jenkins build happy. Moreover
// we don't want to run stress_tests (for now) in jenkins anyway.
// Once we figure out a good way to skip this tests in run_tests.py, I will
// change this to 'return 1'
return 0;
}

vector<pair<TestCaseType, int>> tests;
Expand Down

0 comments on commit e6cd0e7

Please sign in to comment.