react-native/scripts/circleci/exec_swallow_error.sh
Héctor Ramos 6af3b161c0 Run failing tests in CI, without turning CI red (#20775)
Summary:
We have several disabled tests in Circle, and they are not running at all.
This prevents us from seeing when a disabled test might actually be fixed, as enabling the test requires uncommenting the correct line in Circle CI's config.

In this PR, we use the existing swallow_error script to run known-failing steps, without failing the job. This will let us see the step's output in CI, without polluting PRs that have not introduced new failures to CI.
Pull Request resolved: https://github.com/facebook/react-native/pull/20775

Differential Revision: D9442412

Pulled By: hramos

fbshipit-source-id: 83c930811a559fdcf6d7b926b4073343e862d2b3
2018-08-22 12:31:19 -07:00

13 lines
204 B
Bash
Executable File

#!/bin/bash
# execute command
"$@"
# check status
STATUS=$?
if [ $STATUS == 0 ]; then
echo "Command " "$@" " completed successfully"
else
echo "Command " "$@" " exited with error status $STATUS"
fi