diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2017-05-07 16:23:58 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2017-05-07 16:23:58 +0100 |
commit | ce447699a31e5cb3e1d9f44bd71cc6f8e1d1d820 (patch) | |
tree | f83bbdbc87768f6c188e8b017a5fae1044d4a308 | |
parent | Add basic logging of update progress (diff) | |
download | gentoobrowse-api-ce447699a31e5cb3e1d9f44bd71cc6f8e1d1d820.tar.bz2 gentoobrowse-api-ce447699a31e5cb3e1d9f44bd71cc6f8e1d1d820.tar.xz gentoobrowse-api-ce447699a31e5cb3e1d9f44bd71cc6f8e1d1d820.zip |
Only dump DB when desired
-rw-r--r-- | gentoobrowse-api/unittests/testBugs.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gentoobrowse-api/unittests/testBugs.cpp b/gentoobrowse-api/unittests/testBugs.cpp index c285c1e..d29a6af 100644 --- a/gentoobrowse-api/unittests/testBugs.cpp +++ b/gentoobrowse-api/unittests/testBugs.cpp @@ -14,7 +14,9 @@ BOOST_AUTO_TEST_CASE( importBugHtml ) auto db = DB::ConnectionPtr(DB::MockDatabase::openConnectionTo("GentooBrowseAPI")); SQL_REQUIRE_EQUAL("SELECT COUNT(*) FROM gentoobrowse.bugs", int64_t, expectedBugCount); +#if DUMPDB db->execute("COPY gentoobrowse.bugs TO '/tmp/bugs.tsv'"); +#endif } BOOST_AUTO_TEST_SUITE_END(); |