# When use rerunfailedsuites argu and no failed test suite, whether response pass not eror

**URL:** <https://forum.robotframework.org/t/when-use-rerunfailedsuites-argu-and-no-failed-test-suite-whether-response-pass-not-eror/1137>\
**Category:** Robot Framework\
**Created:** [28 December 2020 02:44 UTC](https://forum.robotframework.org/t/when-use-rerunfailedsuites-argu-and-no-failed-test-suite-whether-response-pass-not-eror/1137 "2020-12-28T02:44:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nixuewei](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/nixuewei/32/1548_2.png) [@nixuewei](https://forum.robotframework.org/u/nixuewei)\
**Post date:** [28 December 2020 02:44 UTC](https://forum.robotframework.org/t/when-use-rerunfailedsuites-argu-and-no-failed-test-suite-whether-response-pass-not-eror/1137/1 "2020-12-28T02:44:21Z")

</div>

when use rerunfailedsuites argu and no failed test suite, whether response pass not eror.  
if the first run is all pass, it means fail suite is zero, it should run test report pass. when we merge test result, it just ignore the second one. else i need to write some shell scripts to write some logic in jenkins. it does not very easy to use and friendly.  
if [$? -eq 0]; then  
echo “ALL PASS”  
exit 0   
fi

robot --rerunfailedsuites /Users/ming.ni/Downloads/testfailure/report/output\_original.xml -d /Users/ming.ni/Downloads/testfailure/report --output output\_rerun.xml --report report\_rerun.html --log log\_rerun.html /Users/ming.ni/Downloads/testfailure/  
[ERROR] Collecting failed suites from ‘/Users/ming.ni/Downloads/testfailure/report/output\_original.xml’ failed: All suites passed.
