Skip to content

Commit 7b9e821

Browse files
committed
add warning detection and per-stack checks
1 parent 73d37cb commit 7b9e821

File tree

9 files changed

+52
-3
lines changed

9 files changed

+52
-3
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
requests
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python-2.7.14
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
flask
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python-3.4.0
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
flask
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python-3.5.3
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
requests
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python-3.6.5

test/run

Lines changed: 44 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,26 +87,63 @@ testPylibmc() {
8787
assertCapturedSuccess
8888
}
8989

90+
testPython2_warn() {
91+
compile "python2_warn"
92+
assertCaptured "python-2.7.14"
93+
assertCaptured "security update!"
94+
assertCapturedSuccess
95+
}
96+
9097
testPython2() {
9198
compile "python2"
9299
assertCaptured "python-2.7.15"
93100
assertCapturedSuccess
94101
}
95102

96-
# This will succeed on Cedar-14 and fail on 16 and 18
103+
# This fail
104+
testPython3_4_warn() {
105+
compile "python3_4_warn"
106+
if [[ $STACK = "cedar-14" ]]; then
107+
assertCaptured "python-3.4.0"
108+
assertCapturedSuccess
109+
else
110+
assertCapturedError
111+
fi
112+
}
113+
114+
# This fail
97115
testPython3_4() {
98116
compile "python3_4"
99117
assertCaptured "python-3.4.9"
100118
assertCapturedError
101119
}
102120

121+
# This fail
122+
testPython3_5_warn() {
123+
compile "python3_5_warn"
124+
if [[ $STACK = "cedar-14" ]]; then
125+
assertCaptured "python-3.5.3"
126+
assertCapturedSuccess
127+
else
128+
assertCapturedError
129+
fi
130+
}
131+
103132
# This will fail
104133
testPython3_5() {
105134
compile "python3_5"
106135
assertCaptured "python-3.5.6"
107136
assertCapturedError
108137
}
109138

139+
# This will warn
140+
testPython3_6_warn() {
141+
compile "python3_6_warn"
142+
assertCaptured "python-3.6.5"
143+
assertCaptured "security update!"
144+
assertCapturedSuccess
145+
}
146+
110147
testPython3_6() {
111148
compile "python3_6"
112149
assertCaptured "python-3.6.6"
@@ -122,8 +159,12 @@ testPython3_6_7() {
122159

123160
testPython3_7() {
124161
compile "python3_7"
125-
assertCaptured "python-3.7.0"
126-
assertCapturedSuccess
162+
if [[ $STACK = "cedar-14" ]]; then
163+
assertCapturedError
164+
else
165+
assertCaptured "python-3.7.0"
166+
assertCapturedSuccess
167+
fi
127168
}
128169

129170
# This will fail

0 commit comments

Comments
 (0)