import subprocess

BILLINGE_TEST = False  # special tests for Billinge group, switch it to False before push to remote


def test_fs_to_mongo(make_db):
    if BILLINGE_TEST:
        from pathlib import Path
        repo = str(Path(__file__).parent.parent.parent.joinpath('rg-db-group', 'local'))
    else:
        repo = make_db
    cp = subprocess.run(['regolith', 'fs-to-mongo'], cwd=repo)
    assert cp.returncode == 0

@@ -328,16 +328,138 @@
 b%0A    cp
+0 = subprocess.run(%5B'mongod'%5D)%0A    if cp0.returncode != 0:%0A        print(%22Server failed to start.%22)%0A        return%0A    cp1
  = subpr
@@ -520,16 +520,17 @@
 ssert cp
+1
 .returnc

add start server in test