From 2d5ac856bc7c9d59c66ec007513d184f9c33065d Mon Sep 17 00:00:00 2001
From: Eric Cano <Eric.Cano@cern.ch>
Date: Thu, 17 Mar 2016 17:42:14 +0100
Subject: [PATCH] Added missing bits for system tests after adding paramters to
 cta.conf.

---
 tapeserver/cta-tapedSystemtests.cpp | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/tapeserver/cta-tapedSystemtests.cpp b/tapeserver/cta-tapedSystemtests.cpp
index 95f5cecabb..f868d5d067 100644
--- a/tapeserver/cta-tapedSystemtests.cpp
+++ b/tapeserver/cta-tapedSystemtests.cpp
@@ -50,12 +50,15 @@ TEST(cta_taped, InvocationTests) {
   {
     // We provide le daemon with an existing (but almost empty) configuration
     // file. The mandatory fields are present.
-    unitTests::TempFile tf;
-    tf.stringAppend(
+    unitTests::TempFile ctaConf, tpConfig;
+    ctaConf.stringAppend(
       "#A good enough configuration file for taped\n"
       "general ObjectStoreURL vfsObjectStore:///tmp/dir\n"
-      "general FileCatalogURL sqliteFileCatalog:///tmp/dir2\n");
-    Subprocess spNoDrive("cta-taped", std::list<std::string>({"cta-taped", "-f", "-s", "-c", tf.path()}));
+      "general FileCatalogURL sqliteFileCatalog:///tmp/dir2\n"
+      "taped BufferCount 1\n"
+      "taped TpConfigPath ");
+    ctaConf.stringAppend(tpConfig.path());
+    Subprocess spNoDrive("cta-taped", std::list<std::string>({"cta-taped", "-f", "-s", "-c", ctaConf.path()}));
     spNoDrive.wait();
     ASSERT_NE(std::string::npos, spNoDrive.stdout().find("MSG=\"Aborting\" Message=\"No drive found in configuration\""));
     ASSERT_TRUE(spNoDrive.stderr().empty());
-- 
GitLab