You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I used this demo app to get started with appveyor. Builds seem to work (nosetests succeeds to run the test, xunit xml was uploaded) but I still see a red bar on the left in the appveyor web ui. Also the job is marked as "failed" (e.g. failure notification via email).
I assume this comes from nosetests' output on stderr:
copying build\lib.win32-2.7\pyappveyordemo\extension.pyd -> pyappveyordemo
python.exe : .
At line:2 char:1
+ &$env:PYTHON\python setup.py nosetests --with-xunit
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (.:String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
----------------------------------------------------------------------
Ran 1 test in 0.031s
OK
Command executed with exception: ----------------------------------------------------------------------
Ran 1 test in 0.031s
OK
# this uploads nosetests.xml produced in test_script step
$wc = New-Object 'System.Net.WebClient'
I there anything we can do about this? I like nosetests for my projects so that is fine but I hope there is a way to tell appveyor that stderr output is fine if the exit code is 0.
The text was updated successfully, but these errors were encountered:
FelixSchwarz
changed the title
appveyor displays red border in its web ui even though the job succeeded
appveyor treats job as failed even though nosetests succeeded
Oct 11, 2018
As far as I know this (treating a job as failed if there is output on STDERR) is a powershell "feature". My workaround right now is to replace the ps call in test_script with:
Without this change appveyor treats all builds as "failed" even though
nosetests passes. This is because the PowerShell calls returns a failure.
The root cause seems to be that PowerShell treats output on STDERR as
errors and nosetests prints its status to STDERR.
Right now I don't see a reason why we actually need PowerShell here
so just get rid of it.
see also ogrisel/python-appveyor-demo#53
I used this demo app to get started with appveyor. Builds seem to work (nosetests succeeds to run the test, xunit xml was uploaded) but I still see a red bar on the left in the appveyor web ui. Also the job is marked as "failed" (e.g. failure notification via email).
I assume this comes from nosetests' output on stderr:
I there anything we can do about this? I like nosetests for my projects so that is fine but I hope there is a way to tell appveyor that stderr output is fine if the exit code is 0.
The text was updated successfully, but these errors were encountered: