diff --git a/.travis.yml b/.travis.yml index 494605637..b2fd3ec9d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,10 +12,13 @@ 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 /tmp/fake_dsdb.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/expected_dsdb_cmds - tail -n 128 /var/tmp/travis/aqtest/scratch/dsdb_coverage/issued_dsdb_cmds + - tail -n 128 /var/tmp/travis/aqtest/scratch/dsdb_coverage/failed_dsdb_cmds addons: hosts: - travis.dev 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)) diff --git a/tests/fakebin/fake_dsdb b/tests/fakebin/fake_dsdb index 00c0fcd54..3430ea7c3 100755 --- a/tests/fakebin/fake_dsdb +++ b/tests/fakebin/fake_dsdb @@ -14,14 +14,21 @@ # See the License for the specific language governing permissions and # limitations under the License. +echo "HELLO" >> /tmp/fake_dsdb.log + DATADIR=$(dirname "$0")/dsdb.d if [ -z "$AQTEST_SCRATCHDIR" ]; then + echo "WHOOPS" >> /tmp/fake_dsdb.log exit 0 fi +echo "AQTEST_SCRATCHDIR=$AQTEST_SCRATCHDIR" >> /tmp/fake_dsdb.log + AQTEST_DSDB_COVERAGE_DIR="$AQTEST_SCRATCHDIR/dsdb_coverage" +echo "AQTEST_DSDB_COVERAGE_DIR=$AQTEST_DSDB_COVERAGE_DIR" >> /tmp/fake_dsdb.log + echo "$*" >> "${AQTEST_DSDB_COVERAGE_DIR}/issued_dsdb_cmds" if grep -q "^$*\$" "${AQTEST_DSDB_COVERAGE_DIR}/expected_dsdb_cmds" 2>/dev/null; then