diff options
author | tarek <none@none> | 2009-07-23 14:38:31 +0200 |
---|---|---|
committer | tarek <none@none> | 2009-07-23 14:38:31 +0200 |
commit | 9cca2a8d2e6c815a7a0ae31a14dc8d879f78b2e9 (patch) | |
tree | ee103c4b16220cb99d7d6d5feb6a2c5a93f21dba /tests/install_test.py | |
parent | 1ddd4356e545a49a1345bb02d62b19478805c161 (diff) | |
download | external_python_setuptools-9cca2a8d2e6c815a7a0ae31a14dc8d879f78b2e9.tar.gz external_python_setuptools-9cca2a8d2e6c815a7a0ae31a14dc8d879f78b2e9.tar.bz2 external_python_setuptools-9cca2a8d2e6c815a7a0ae31a14dc8d879f78b2e9.zip |
fixed the forbidden access problem
--HG--
branch : distribute
extra : rebase_source : 4638763f686895225618238abb4f55786a205692
Diffstat (limited to 'tests/install_test.py')
-rw-r--r-- | tests/install_test.py | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/tests/install_test.py b/tests/install_test.py index 56ab13cc..e2d86ec2 100644 --- a/tests/install_test.py +++ b/tests/install_test.py @@ -22,9 +22,14 @@ f.close() # running it args = [sys.executable] + ['bootstrap.py'] if is_jython: - subprocess.Popen([sys.executable] + args).wait() + res = subprocess.call([sys.executable] + args) else: - os.spawnv(os.P_WAIT, sys.executable, args) + res = os.spawnv(os.P_WAIT, sys.executable, args) + +if res != 0: + print '**** Test failed, please send me the output at tarek@ziade.org' + os.remove('bootstrap.py') + sys.exit(2) # now checking if Distribute is installed script = """\ @@ -52,7 +57,7 @@ finally: f.close() try: - args = [sys.executable] + ['script.py'] + args = [sys.executable] + [script_name] if is_jython: res = subprocess.call([sys.executable] + args) else: |