diff options
author | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2019-04-22 11:10:47 +0100 |
---|---|---|
committer | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2019-04-22 11:24:29 +0100 |
commit | 1b2c1d620f769a87442446ece5b1915cb537e73e (patch) | |
tree | 7b4e2455d770ba26d076843003da3b1ff281a955 | |
parent | 285c64d101b9b392d5d7d88639267bc9b73224a1 (diff) | |
download | psycopg2-1b2c1d620f769a87442446ece5b1915cb537e73e.tar.gz |
Run tests more quiet/faster building wheels
We are mostly interested it installed alright.
-rwxr-xr-x | scripts/appveyor.py | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/scripts/appveyor.py b/scripts/appveyor.py index 737ff48..abd68ed 100755 --- a/scripts/appveyor.py +++ b/scripts/appveyor.py @@ -450,12 +450,19 @@ def run_test_suite(): os.environ.pop('OPENSSL_CONF', None) # Run the unit test + cmdline = [ + py_exe(), + '-c', + "import tests; tests.unittest.main(defaultTest='tests.test_suite')", + ] + + if is_wheel(): + os.environ['PSYCOPG2_TEST_FAST'] = '1' + else: + cmdline.append('--verbose') + os.chdir(package_dir()) - run_command( - [py_exe(), '-c'] - + ["import tests; tests.unittest.main(defaultTest='tests.test_suite')"] - + ["--verbose"] - ) + run_command(cmdline) def step_on_success(): |