mirror of https://git.48k.eu/ogserver
#915 Add default SQL schema for tests
This schema is now adapted to work on this repository instead of the "OpenGnsys" general repository.master
parent
35f067bf90
commit
5b1efd0b53
File diff suppressed because it is too large
Load Diff
|
@ -13,7 +13,7 @@ def start_mysql():
|
|||
subprocess.run(['mysqladmin', 'drop', '-f', 'test-db'],
|
||||
stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
|
||||
subprocess.run(['mysqladmin', 'create', 'test-db'])
|
||||
subprocess.run('mysql --default-character-set=utf8 test-db < ../../../../Database/ogAdmBD.sql', shell=True)
|
||||
subprocess.run('mysql --default-character-set=utf8 test-db < ../cfg/ogAdmBD.sql', shell=True)
|
||||
subprocess.run(['mysql', '-D', 'test-db', '-e', sql_data])
|
||||
subprocess.run(['mysql', '-D', 'test-db', '-e', sql_create_user])
|
||||
|
||||
|
|
Loading…
Reference in New Issue