Skip to content

Commit ff8a591

Browse files
author
Mike Dirolf
committed
only print collections starting with dbs
1 parent 312f8c3 commit ff8a591

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tools/driver_tests.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,11 @@ def dbs(db, out):
8787
db.dbs_1.save({"foo": "bar"})
8888
db.dbs_2.save({"psi": "phi"})
8989
print >>out, db.name()
90-
for name in sorted(db.collection_names()):
90+
for name in [n for n in sorted(db.collection_names()) if n.startswith("dbs")]:
9191
print >>out, name
9292
db.drop_collection(db.dbs_1)
9393
db.create_collection("dbs_3")
94-
for name in sorted(db.collection_names()):
94+
for name in [n for n in sorted(db.collection_names()) if n.startswith("dbs")]:
9595
print >>out, name
9696

9797
def main(test, out_file):

0 commit comments

Comments
 (0)