File tree 4 files changed +27
-21
lines changed
4 files changed +27
-21
lines changed Original file line number Diff line number Diff line change @@ -103,10 +103,5 @@ script:
103
103
after_script :
104
104
- echo "after_script start"
105
105
- source activate pandas-dev && pushd /tmp && python -c "import pandas; pandas.show_versions();" && popd
106
- - if [ -e test-data-single.xml ]; then
107
- ci/print_skipped.py test-data-single.xml;
108
- fi
109
- - if [ -e test-data-multiple.xml ]; then
110
- ci/print_skipped.py test-data-multiple.xml;
111
- fi
106
+ - ci/print_skipped.py
112
107
- echo "after_script done"
Original file line number Diff line number Diff line change 89
89
# note that this will produce $LASTEXITCODE=1
90
90
Write-Error "$($matches[1]) tests failed"
91
91
}
92
- displayName: Check for test failures
92
+ displayName: 'Check for test failures'
93
+ - script : |
94
+ export PATH=$HOME/miniconda3/bin:$PATH
95
+ source activate pandas-dev
96
+ python ci/print_skipped.py
97
+ displayName: 'Print skipped tests'
Original file line number Diff line number Diff line change @@ -18,11 +18,11 @@ jobs:
18
18
19
19
steps :
20
20
- powershell : Write-Host "##vso[task.prependpath]$env:CONDA\Scripts"
21
- displayName : Add conda to PATH
21
+ displayName : ' Add conda to PATH'
22
22
- script : conda update -q -n base conda
23
23
displayName : Update conda
24
24
- script : conda env create -q --file ci\\deps\\azure-windows-$(CONDA_PY).yaml
25
- displayName : Create anaconda environment
25
+ displayName : ' Create anaconda environment'
26
26
- script : |
27
27
call activate pandas-dev
28
28
call conda list
48
48
# note that this will produce $LASTEXITCODE=1
49
49
Write-Error "$($matches[1]) tests failed"
50
50
}
51
- displayName: Check for test failures
51
+ displayName: 'Check for test failures'
52
+ - script : |
53
+ export PATH=$HOME/miniconda3/bin:$PATH
54
+ source activate pandas-dev
55
+ python ci/print_skipped.py
56
+ displayName: 'Print skipped tests'
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env python
2
2
3
+ import os
3
4
import sys
4
5
import math
5
6
import xml .etree .ElementTree as et
@@ -36,19 +37,19 @@ def parse_results(filename):
36
37
return '\n ' .join (skipped )
37
38
38
39
39
- def main (args ):
40
+ def main ():
41
+ test_files = [
42
+ 'test-data-single.xml' ,
43
+ 'test-data-multiple.xml' ,
44
+ 'test-data.xml' ,
45
+ ]
46
+
40
47
print ('SKIPPED TESTS:' )
41
- for fn in args .filename :
42
- print (parse_results (fn ))
48
+ for fn in test_files :
49
+ if os .path .isfile (fn ):
50
+ print (parse_results (fn ))
43
51
return 0
44
52
45
53
46
- def parse_args ():
47
- import argparse
48
- parser = argparse .ArgumentParser ()
49
- parser .add_argument ('filename' , nargs = '+' , help = 'XUnit file to parse' )
50
- return parser .parse_args ()
51
-
52
-
53
54
if __name__ == '__main__' :
54
- sys .exit (main (parse_args () ))
55
+ sys .exit (main ())
You can’t perform that action at this time.
0 commit comments