projects
/
arvados.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3f18ac3
)
Work around Python bug, appending to a FIFO in python >=3 <3.8 is broken
author
Ward Vandewege <ward@curii.com>
Mon, 14 Sep 2020 17:00:45 +0000
(13:00 -0400)
committer
Ward Vandewege <ward@curii.com>
Mon, 14 Sep 2020 17:02:08 +0000
(13:02 -0400)
(https://bugs.python.org/issue27805).
No issue #
Arvados-DCO-1.1-Signed-off-by: Ward Vandewege <ward@curii.com>
sdk/python/tests/run_test_server.py
patch
|
blob
|
history
diff --git
a/sdk/python/tests/run_test_server.py
b/sdk/python/tests/run_test_server.py
index f4c1230cc8cf9ef30004cec3954ea52b9bc31e12..358608d63c5718f2161973808e0233bc5f6b74a8 100644
(file)
--- a/
sdk/python/tests/run_test_server.py
+++ b/
sdk/python/tests/run_test_server.py
@@
-327,7
+327,10
@@
def run(leave_running_atexit=False):
env.pop('ARVADOS_API_HOST', None)
env.pop('ARVADOS_API_HOST_INSECURE', None)
env.pop('ARVADOS_API_TOKEN', None)
- logf = open(_logfilename('railsapi'), 'a')
+ if not os.environ.get('ARVADOS_DEBUG', ''):
+ logf = open(_logfilename('railsapi'), 'a')
+ else:
+ logf = open(_logfilename('railsapi'), 'w')
railsapi = subprocess.Popen(
['bundle', 'exec',
'passenger', 'start', '-p{}'.format(port),