Skip to content

Commit

Permalink
MINOR handle listFiles output format correctly in diskfull.js test
Browse files Browse the repository at this point in the history
  • Loading branch information
astaple committed Jan 20, 2010
1 parent 0cde1d7 commit 7b0fd14
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions jstests/disk/diskfull.js
@@ -1,5 +1,12 @@
doIt = true;
if ( !( "diskfulltest" in listFiles( "/data/db" ) ) ) {
doIt = false;
files = listFiles( "/data/db" );
for ( i in files ) {
if ( files[ i ].name == "/data/db/diskfulltest" ) {
doIt = true;
}
}

if ( !doIt ) {
print( "path /data/db/diskfulltest/ missing, skipping diskfull test" );
doIt = false;
}
Expand Down

0 comments on commit 7b0fd14

Please sign in to comment.