From ba657029820fbf8e9233259f31a1edc8da7c56d2 Mon Sep 17 00:00:00 2001 From: CJentzsch Date: Thu, 18 Jun 2015 12:31:58 +0200 Subject: [PATCH] avoid network tests when --nonetwork is set --- TestHelper.cpp | 7 ++++--- TestHelper.h | 3 ++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/TestHelper.cpp b/TestHelper.cpp index 4e1ad92b4..6c1db8eea 100644 --- a/TestHelper.cpp +++ b/TestHelper.cpp @@ -754,8 +754,10 @@ Options::Options() checkState = true; else if (arg == "--wallet") wallet = true; - else if (arg == "--network") - network = true; + else if (arg == "--nonetwork") + nonetwork = true; + else if (arg == "--nodag") + nodag = true; else if (arg == "--all") { performance = true; @@ -764,7 +766,6 @@ Options::Options() inputLimits = true; bigData = true; wallet = true; - network = true; } else if (arg == "--singletest" && i + 1 < argc) { diff --git a/TestHelper.h b/TestHelper.h index ab52a550c..c21429ef4 100644 --- a/TestHelper.h +++ b/TestHelper.h @@ -223,7 +223,8 @@ public: bool inputLimits = false; bool bigData = false; bool wallet = false; - bool network = false; + bool nonetwork = false; + bool nodag = false; /// @} /// Get reference to options