summaryrefslogtreecommitdiff
path: root/buildscripts
diff options
context:
space:
mode:
authorScott Hernandez <scotthernandez@gmail.com>2014-02-21 16:32:32 -0500
committerScott Hernandez <scotthernandez@gmail.com>2014-02-21 16:34:09 -0500
commit6c6844e9b012c16d78353ab226911d3b9f134606 (patch)
treebfb403a25aefd617e5f7ba85bd28a26ba2249345 /buildscripts
parent7a2c553be0eea5b5d118dd60398c4f5fda1d202b (diff)
downloadmongo-6c6844e9b012c16d78353ab226911d3b9f134606.tar.gz
SERVER-12804: use percent for string formatting
Diffstat (limited to 'buildscripts')
-rwxr-xr-xbuildscripts/smoke.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/buildscripts/smoke.py b/buildscripts/smoke.py
index 33ea615cfec..bca07a7a23d 100755
--- a/buildscripts/smoke.py
+++ b/buildscripts/smoke.py
@@ -326,7 +326,7 @@ def check_db_hashes(master, slave):
if not slave.slave:
raise(Bug("slave instance doesn't have slave attribute set"))
- print "waiting for slave to catch up"
+ print "waiting for slave (%s) to catch up to master (%s)" % (slave.port, master.port)
master.wait_for_repl()
print "caught up!"
@@ -360,8 +360,8 @@ def check_db_hashes(master, slave):
screwy_in_slave[coll] = stats
if mhash == "no _id _index":
msg = "collection with no _id index:" + \
- " {} -- slave has these indexes: {}"
- print msg.format(coll, sTestDB[coll].index_information())
+ " %s -- slave has these indexes: %s"
+ print msg % (coll, sTestDB[coll].index_information())
for db in slave.dict.keys():
if db not in master.dict:
@@ -759,7 +759,7 @@ def report():
if check_and_report_replication_dbhashes():
test_result["end"] = time.time()
test_result["elapsed"] = test_result["end"] - test_result["start"]
- test_result["error"] = "#dbhash#"
+ test_result["test_file"] = "/#dbhash#"
test_result["error"] = "dbhash mismatch"
test_result["status"] = "fail"
test_report["results"].append( test_result )