Skip to content

Can not run test #79

Description

@minhhungit

Hi team, I can not start test , I tried some cases on my windows 10 PC

Python 2.7.17
With mongosh.exe 1.04

Command:

python benchrun.py -f testcases/* -t 1 2 4 -s "C:\mgdb\bin\mongosh.exe" --replset rs0 --port 27050

Error:

A test file that was passed in does not exist: testcases/*

Python 2.7.17
With mongosh.exe 1.04
Command:

python benchrun.py -f testcases/simple_insert.js -t 1 2 4 -s "C:\mgdb\bin\mongosh.exe" --replset rs0 --port 27050

Error:

Current Mongosh Log ID: 610fab0470ed640b1317d709
Connecting to:          mongodb://localhost:27050/?directConnection=true&serverSelectionTimeoutMS=2000
Using MongoDB:          5.0.2
Using Mongosh:          1.0.4

For mongosh info see: https://docs.mongodb.com/mongodb-shell/

   The server generated these startup warnings when booting:
   2021-08-08T16:29:07.049+07:00: Access control is not enabled for the database. Read and write access to data and configuration is unrestricted

db version: 5.0.2
6d9ec525e78465dcecadcff99cce953d380fedc8

load('util/utils.js');
load('testcases/simple_insert.js');
mongoPerfRunTests([1, 2, 4], 1, 1, 5, 1, "%", [], 0, {"writeCmdMode": "true", "readCmdMode": "false", "writeConcern": {"j": "false"}}, false, false, {"traceOnly": false});
TypeError: Object.bsonsize is not a function (Are you trying to run a script written for the legacy shell? Try running `snippet install mongocompat`)
Finished Testing.
Error: No JSON object could be decoded

Python 2.7.17
With mongo shell 5.0.2
Command:

python benchrun.py -f testcases/simple_insert.js -t 1 2 4 -s "C:\mgdb\bin\mongos.exe" --replset rs0 --port 27050

Error:

Error parsing command line: unrecognised option '--norc'
try 'C:\mgdb\bin\mongos.exe --help' for more information
Error: Command '['C:\\mgdb\\bin\\mongos.exe', '--norc', '--host', 'localhost', '--port', '27050', '--eval', "print('db version: ' + db.version()); db.serverBuildInfo().gitVersion;"]' returned non-zero exit status 2

I also tried with mongo shell version 4.4.8, 3.4.24, they also do not work
Above cases just typical cases

Exactly what is requirement for this tool pls

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions