@@ -27,6 +27,10 @@ parameters:
2727 displayName : " Post test"
2828 type : boolean
2929 default : true
30+ - name : PostTestWithHangs
31+ displayName : " Post tests that may hang"
32+ type : boolean
33+ default : true
3034- name : OverrideRef
3135 displayName : " Force version (else uses tag)"
3236 type : string
@@ -237,47 +241,49 @@ stages:
237241 TEST_MSIX: $(TEST_MSIX_DIR)
238242
239243 - powershell : |
240- gcm pymanager
241- gcm pywmanager
242- # These are likely present due to the machine configuration,
244+ # Some of these are likely present due to the machine configuration,
243245 # but we'll check for them anyway.
244- gcm py
245- gcm python
246- gcm pyw
247- gcm pythonw
246+ gcm pymanager, pywmanager, py, python, pyw, pythonw | Format-Table -AutoSize
248247 displayName: 'Ensure global commands are present'
249248
250- - powershell : |
251- pymanager help
252- displayName: 'Show help output'
249+ - ${{ if eq(parameters.PostTestWithHangs, 'true') }} :
250+ - powershell : |
251+ pymanager help
252+ displayName: 'Show help output'
253+ timeoutInMinutes: 1
253254
254255 - powershell : |
255256 pymanager install -vv default
256257 displayName: 'Install default runtime'
258+ timeoutInMinutes: 5
257259 env:
258260 PYMANAGER_DEBUG: true
259261
260262 - powershell : |
261263 pymanager list
262264 displayName: 'List installed runtimes'
265+ timeoutInMinutes: 1
263266 env:
264267 PYMANAGER_DEBUG: true
265268
266269 - powershell : |
267270 pymanager --list-paths
268271 displayName: 'List installed runtimes (legacy)'
272+ timeoutInMinutes: 1
269273 env:
270274 PYMANAGER_DEBUG: true
271275
272276 - powershell : |
273277 pymanager exec -m site
274278 displayName: 'Launch default runtime'
279+ timeoutInMinutes: 1
275280 env:
276281 PYMANAGER_DEBUG: true
277282
278283 - powershell : |
279284 pymanager uninstall -y default
280285 displayName: 'Uninstall runtime'
286+ timeoutInMinutes: 3
281287 env:
282288 PYMANAGER_DEBUG: true
283289
@@ -291,6 +297,7 @@ stages:
291297 pymanager install --configure -y
292298 if ($?) { pymanager list }
293299 displayName: 'Emulate first launch'
300+ timeoutInMinutes: 5
294301 env:
295302 PYTHON_MANAGER_INCLUDE_UNMANAGED: false
296303 PYTHON_MANAGER_CONFIG: .\test-config.json
@@ -302,6 +309,7 @@ stages:
302309 pymanager list --source .\bundle
303310 pymanager install --source .\bundle 3 3-32 3-64 3-arm64
304311 displayName: 'Offline bundle download and install'
312+ timeoutInMinutes: 5
305313 env:
306314 PYMANAGER_DEBUG: true
307315
0 commit comments