Enable regression tests to be run on other branches

Summary: When running regression tests on other branches, this will push values to entity rocksdb_build.$git_branch

Test Plan: Ran regression test on regression branch, observed values send to ODS in entity rocksdb_build.regression

Reviewers: kailiu

Reviewed By: kailiu

CC: leveldb

Differential Revision: https://reviews.facebook.net/D14493
This commit is contained in:
Igor Canadi 2013-12-06 16:22:38 -08:00
parent 0a5ec49895
commit 07c8448845

View File

@ -26,6 +26,12 @@ function cleanup {
} }
trap cleanup EXIT trap cleanup EXIT
git_branch=$(git rev-parse --abbrev-ref HEAD)
if [ $git_branch == "master" ]; then
git_branch=""
else
git_branch="."$git_branch
fi
make clean make clean
OPT=-DNDEBUG make db_bench -j$(nproc) OPT=-DNDEBUG make db_bench -j$(nproc)
@ -150,7 +156,7 @@ function send_to_ods {
echo >&2 "ERROR: Key $key doesn't have a value." echo >&2 "ERROR: Key $key doesn't have a value."
return return
fi fi
curl -s "https://www.intern.facebook.com/intern/agent/ods_set.php?entity=rocksdb_build&key=$key&value=$value" \ curl -s "https://www.intern.facebook.com/intern/agent/ods_set.php?entity=rocksdb_build$git_branch&key=$key&value=$value" \
--connect-timeout 60 --connect-timeout 60
} }