From c5e9611c86c28a095cf2ded0bb3110ace29b0730 Mon Sep 17 00:00:00 2001 From: James Adams Date: Thu, 26 Jul 2018 10:59:11 +0100 Subject: [PATCH] Test fake DSDB Change-Id: I6f7ba5a9da3c1341bfa56788ee48510853ce0b61 --- .travis.yml | 2 +- tests/broker/brokertest.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 494605637..158d8ff86 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,7 +12,7 @@ before_script: script: - cd $TRAVIS_BUILD_DIR && tests/runtests.py -c tests/unittest.conf.travis --assume_yes after_script: - - tail -n 128 /var/tmp/travis/aqtest/quattor/logs/aqd.log + - cat /var/tmp/travis/aqtest/quattor/logs/aqd.log - ls /var/tmp/travis/aqtest/scratch - ls /var/tmp/travis/aqtest/scratch/dsdb_coverage - tail -n 128 /var/tmp/travis/aqtest/scratch/dsdb_coverage/issued_dsdb_cmds diff --git a/tests/broker/brokertest.py b/tests/broker/brokertest.py index b3b6a07a7..c398f0f0c 100755 --- a/tests/broker/brokertest.py +++ b/tests/broker/brokertest.py @@ -702,6 +702,8 @@ def dsdb_expect(self, command, fail=False, errstr=""): filename = DSDB_EXPECT_SUCCESS_FILE expected_name = os.path.join(self.dsdb_coverage_dir, filename) + print expected_name + with open(expected_name, "a") as fp: if isinstance(command, list): fp.write(" ".join(str(cmd) for cmd in command))