Skip to content

Commit

Permalink
Merge branch 'master' into busyjay/impl-pipe-buf
Browse files Browse the repository at this point in the history
  • Loading branch information
BusyJay committed Jul 18, 2016
2 parents 6fe836a + bc81bbe commit df2b33d
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,4 @@ clean_tidb:

clean:
cargo clean
@rm -rf $(DEPS_PATH) $(BIN_PATH)
@rm -rf $(DEPS_PATH) $(BIN_PATH)
2 changes: 1 addition & 1 deletion tests/raftstore/cluster.rs
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ impl<T: Simulator> Cluster<T> {
let region_id = request.get_header().get_region_id();
loop {
let leader = match self.leader_of_region(region_id) {
None => return Err(box_err!("can't get leader of region")),
None => return Err(box_err!("can't get leader of region {}", region_id)),
Some(l) => l,
};
request.mut_header().set_peer(leader);
Expand Down
2 changes: 1 addition & 1 deletion tests/raftstore/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ pub fn new_store_cfg() -> Config {
Config {
raft_base_tick_interval: 10,
raft_heartbeat_ticks: 2,
raft_election_timeout_ticks: 20,
raft_election_timeout_ticks: 25,
raft_log_gc_tick_interval: 100,
raft_log_gc_threshold: 1,
pd_heartbeat_tick_interval: 20,
Expand Down
1 change: 1 addition & 0 deletions travis-build/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ cover_linux:
export LIBRARY_PATH="${LIBRARY_PATH}:${ROCKSDB_DIR}" && \
export LOG_LEVEL=DEBUG && \
export RUST_BACKTRACE=1 && \
export RUST_TEST_THREADS=1 && \
grep " Running " tests.out | sed -e 's/Running//g' | xargs -n 1 -i ${KCOV_DIR}/kcov --verify --coveralls-id=${TRAVIS_JOB_ID} --include-pattern tikv/src --exclude-pattern tikv/src/bin --strip-path `pwd`/ target/kcov {} --nocapture

cover_osx:
Expand Down
5 changes: 4 additions & 1 deletion travis-build/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ fi

export ENABLE_FEATURES=default
export LOG_FILE=tests.log
export RUST_TEST_THREADS=1
make test 2>&1 | tee tests.out
status=$?
for case in `cat tests.out | python -c "import sys
Expand All @@ -41,10 +42,12 @@ print '\n'.join(cases)
"`; do
echo find fail cases: $case
grep $case $LOG_FILE | cut -d ' ' -f 2-
# there is a thread panic, which should not happen.
status=1
echo
done

rm tests.out || true
# don't remove the tests.out, coverage counts on it.
rm $LOG_FILE || true

exit $status

0 comments on commit df2b33d

Please sign in to comment.