Skip to content

Commit a5f354e

Browse files
romanhabibovTotktonada
authored andcommitted
test: get VERBOSE from environment
Get debugging flag VERBOSE from environment if it exists.
1 parent 0dc7aa8 commit a5f354e

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

README.md

+3
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,9 @@ For selective running, start:
167167
If you want to add new test, see examples: `*_features.py` files.
168168
Don't forget to include it to `test/run_all.sh`.
169169

170+
You can set `VERBOSE` environment variable to `True` to enable
171+
debug info.
172+
170173
[Back to contents](#contents)
171174

172175
## REST

test/http_utils.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
import urllib
77
import urllib2
88
import traceback
9+
import os
910

10-
11-
#VERBOSE = True
12-
VERBOSE = False
11+
# Debugging flag.
12+
VERBOSE = os.getenv('VERBOSE', False)
1313
BASE_URL = 'http://0.0.0.0:8081'
1414

1515

test/lua.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,11 @@
55
import time
66
sys.path.append('./t')
77
from http_utils import *
8+
import os
9+
10+
# Debugging flag.
11+
VERBOSE = os.getenv('VERBOSE', False)
812

9-
VERBOSE = False
1013
BASE_URL = 'http://0.0.0.0:8081'
1114

1215
# =============

0 commit comments

Comments
 (0)