File tree 2 files changed +26
-3
lines changed
2 files changed +26
-3
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " aws-c-http" ,
3
+ "hosts" : {
4
+ "al2012" : {
5
+ "enabled" : false ,
6
+ "_comment" : " al2012 can't currently pull builder.py from github. SSL: CERTIFICATE_VERIFY_FAILED"
7
+ }
8
+ },
9
+ "targets" : {
10
+ "android" : {
11
+ "enabled" : false ,
12
+ "_comment" : " disabled until we need to support it. LibCrypto needs to be configured on build machine."
13
+ }
14
+ },
3
15
"upstream" : [
4
16
{ "name" : " aws-c-io" },
5
17
{ "name" : " aws-c-compression" }
6
18
],
7
19
"downstream" : [
8
20
{ "name" : " aws-c-auth" }
21
+ ],
22
+ "test" : [
23
+ [" ctest" , " ." , " --output-on-failure" ],
24
+ [" {python}" , " {source_dir}/integration-testing/http_client_test.py" , " {install_dir}/bin/elasticurl{exe}" ]
9
25
]
10
26
}
Original file line number Diff line number Diff line change 25
25
# Remove args from sys.argv so that unittest doesn't also try to parse them.
26
26
sys .argv = sys .argv [:1 ]
27
27
28
- shell = sys .platform .startswith ('win' )
28
+ def run_command (args ):
29
+ # gather all stderr and stdout to a single string that we print only if things go wrong
30
+ process = subprocess .Popen (args , stdout = subprocess .PIPE , stderr = subprocess .STDOUT )
31
+ output = process .communicate ()[0 ]
29
32
33
+ if process .returncode != 0 :
34
+ args_str = subprocess .list2cmdline (args )
35
+ print (args_str )
36
+ for line in output .splitlines ():
37
+ print (line .decode ())
30
38
31
- def run_command (args ):
32
- subprocess .check_call (args , shell = shell )
39
+ raise RuntimeError ("Return code {code} from: {cmd}" .format (code = process .returncode , cmd = args_str ))
33
40
34
41
def compare_files (filename_expected , filename_other ):
35
42
if not filecmp .cmp (filename_expected , filename_other , shallow = False ):
You can’t perform that action at this time.
0 commit comments