Add an option to submit test-perf result to perfherder

This commit is contained in:
Shing Lyu 2016-11-09 14:55:57 +08:00
parent 16199b4983
commit ddd03229e0
4 changed files with 38 additions and 31 deletions

View file

@ -32,6 +32,16 @@ PS1="" source venv/bin/activate
pip install "treeherder-client>=3.0.0"
mkdir -p servo
mkdir -p output
./git_log_to_json.sh > servo/revision.json && \
./test_all.sh --servo
mkdir -p output # Test result will be saved to output/perf-<timestamp>.json
./git_log_to_json.sh > servo/revision.json
if [[ "${#}" -eq 1 ]]; then
if [[ "${1}" = "--submit" ]]; then
./test_all.sh --servo --submit
else
echo "Unrecognized argument: ${1}; Ignore and proceed without submitting"
./test_all.sh --servo
fi
else
./test_all.sh --servo
fi