Skip to content

Commit

Permalink
fix(build): travis build for non-debug builds (#155)
Browse files Browse the repository at this point in the history
Signed-off-by: mayank <mayank.patel@cloudbyte.com>
  • Loading branch information
mynktl authored and vishnuitta committed Nov 22, 2018
1 parent 2d8ba96 commit 3ad935d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,13 @@ script:
export FIO_SRCDIR=$PWD/../fio;
sudo bash ./print_debug_info.sh &
sudo bash ./tests/cbtest/script/test_uzfs.sh -T all || travis_terminate 1;
./build_image.sh || travis_terminate 1;
else
sudo /sbin/modprobe zfs;
travis_wait 10 /sbin/ztest || travis_terminate 1;
fi
after_failure:
- find /var/tmp/test_results/current/log -type f -name '*' -printf "%f\n" -exec cut -c -$ZFS_TEST_TRAVIS_LOG_MAX_LENGTH {} \;
after_success:
- if [ $ZFS_BUILD_TAGS = 0 ]; then ./build_image.sh; fi
- find /var/tmp/test_results/current/log -type f -name '*' -printf "%f\n" -exec cut -c -$ZFS_TEST_TRAVIS_LOG_MAX_LENGTH {} \;
- bash <(curl -s https://codecov.io/bash)
4 changes: 4 additions & 0 deletions tests/cbtest/gtest/test_uzfs.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2075,7 +2075,9 @@ TEST(uZFSRebuild, TestErroredRebuild) {
zk_thread_join(writer_thread->t_tid);

zvol_rebuild_step_size = ((total_ios/10) + 1) * 4096;
#ifdef DEBUG
inject_error.inject_rebuild_error.dw_replica_rebuild_error_io = (total_ios) / 4;
#endif
execute_rebuild_test_case("errored rebuild with data conn", 15,
ZVOL_REBUILDING_SNAP, ZVOL_REBUILDING_FAILED, 4, "vol3");
close(wargs.r1_fd);
Expand All @@ -2099,7 +2101,9 @@ TEST(uZFSRebuild, TestErroredRebuild) {
0, 0);

zvol_rebuild_step_size = (10 * 1024ULL * 1024ULL * 1024ULL);
#ifdef DEBUG
inject_error.inject_rebuild_error.dw_replica_rebuild_error_io = 0;
#endif
execute_rebuild_test_case("complete rebuild with data conn", 15,
ZVOL_REBUILDING_SNAP, ZVOL_REBUILDING_DONE, 6, "vol3");

Expand Down

0 comments on commit 3ad935d

Please sign in to comment.