function print_test_suite_results(results) {
    console.log('\n\nTest Suite Results:\n');

    let color;
    let failing_suites = 0;
    let passing_suites = 0;

    function pad_output(num_chars) {
        let i = 0;

        while (i < num_chars) {
            process.stdout.write(' ');
            i++;
        }
    }
    results.forEach((test) => {
        if (test.status === 'success') {
            color = colors.GREEN;
            passing_suites++;
        } else if (test.status === 'failure') {
            color = colors.RED;
            failing_suites++;
        }

        process.stdout.write(color);
        process.stdout.write(test.name);
        pad_output((max_test_class_length - test.name.length) + 8);
        process.stdout.write(test.status);
        process.stdout.write(`${colors.RESET}\n`);
    });

    console.log(`\n${passing_suites} passing, ${failing_suites} failing!`);
}
This script runs instrumentation tests one by one with retries
Instrumentation tests tend to be flaky, so rerunning them individually increases
chances for success and reduces total average execution time.

We assume that all instrumentation tests are flat in one folder
Available arguments:
--path - path to all .java files with tests
--package - com.facebook.react.tests
--retries [num] - how many times to retry possible flaky commands: npm install and running tests, default 1