1
0
mirror of https://github.com/haiwen/seafile-server.git synced 2025-09-12 13:28:30 +00:00

Use local seaf-server when running tests

This commit is contained in:
Shuai Lin
2018-01-29 19:30:13 +08:00
parent 7827725598
commit b4148aea30
2 changed files with 12 additions and 4 deletions

View File

@@ -188,7 +188,12 @@ def main():
def start_and_test_with_db(db):
info('Setting up seafile server with %s database', db)
server = ServerCtl(INSTALLDIR, db)
server = ServerCtl(
INSTALLDIR,
db=db,
# Use the newly built seaf-server (to avoid "make install" each time when developping locally)
seaf_server_bin=join(SeafileServer().projectdir, 'server/seaf-server')
)
server.setup()
with server.run():
info('Testing with %s database', db)