Skip to content

Commit 0ad8482

Browse files
committed
manage test suite exit code
1 parent 2516eb2 commit 0ad8482

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

tests/TestRedis.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3271,6 +3271,6 @@ public function testTime() {
32713271
}
32723272
}
32733273

3274-
TestSuite::run("Redis_Test");
3274+
exit(TestSuite::run("Redis_Test"));
32753275

32763276
?>

tests/test.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,11 @@ public static function run($className) {
5151

5252
if(empty($className::$errors)) {
5353
echo "All tests passed.\n";
54+
return 0;
5455
}
5556

5657
echo implode('', $className::$errors);
58+
return 1;
5759
}
5860
}
5961

0 commit comments

Comments
 (0)