From ce447699a31e5cb3e1d9f44bd71cc6f8e1d1d820 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 7 May 2017 16:23:58 +0100 Subject: Only dump DB when desired --- gentoobrowse-api/unittests/testBugs.cpp | 2 ++ 1 file changed, 2 insertions(+) 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(); -- cgit v1.2.3