summaryrefslogtreecommitdiffstats
path: root/tests/run-tests.py
diff options
context:
space:
mode:
authorJavier Sánchez Parra <jsanchez@soleta.eu>2021-04-16 13:39:03 +0200
committerOpenGnSys Support Team <soporte-og@soleta.eu>2021-04-19 19:05:15 +0200
commitc2c6ce93b1feecbcc79b4d52cf68823f14e88410 (patch)
treec2ce352891770bfffcc3001a733ea7e1093af2b1 /tests/run-tests.py
parent0b5c0813fa253e4f020fc4ee09a2501f96329337 (diff)
#915 Add large HTTP response test
This commit adds a test for HTTP responses that are too large to fit in ogServer response buffer. It also moves the basic sql data used for the other tests to its own file, easing its reuse in several files.
Diffstat (limited to 'tests/run-tests.py')
-rwxr-xr-xtests/run-tests.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/run-tests.py b/tests/run-tests.py
index 90a0b2d..f252331 100755
--- a/tests/run-tests.py
+++ b/tests/run-tests.py
@@ -14,7 +14,8 @@ def start_mysql():
stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
subprocess.run(['mysqladmin', 'create', 'test-db'])
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 --default-character-set=utf8 test-db '
+ '< config/basic_data.sql', shell=True)
subprocess.run(['mysql', '-D', 'test-db', '-e', sql_create_user])
def stop_mysql():