Bug 1098006 - golang-packaging: gotest does not print failure reason
golang-packaging: gotest does not print failure reason
Status: NEW
Classification: openSUSE
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Development
Current
Other Other
: P5 - None : Normal (vote)
: ---
Assigned To: Graham Anderson
E-mail List
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2018-06-18 09:05 UTC by Michal Suchanek
Modified: 2018-06-18 09:06 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michal Suchanek 2018-06-18 09:05:45 UTC
The %gotest macro does not produce any intelligible output on test failure.

ie golang-github-stretchr-testify fails tests pretty much in every distro in the devel project.

The successful test run looks like:
[   61s] $WORK/github.com/stretchr/testify/require/_test/require.test
[   61s] $WORK/github.com/stretchr/testify/_test/testify.test
[   61s] ok  	github.com/stretchr/testify	0.037s
[   61s] $WORK/github.com/stretchr/testify/assert/_test/assert.test
[   61s] ok  	github.com/stretchr/testify/assert	0.042s
[   61s] ?   	github.com/stretchr/testify/http	[no test files]
[   62s] $WORK/github.com/stretchr/testify/suite/_test/suite.test
[   62s] $WORK/github.com/stretchr/testify/mock/_test/mock.test
[   62s] ok  	github.com/stretchr/testify/mock	0.023s
[   62s] ok  	github.com/stretchr/testify/require	0.014s
[   62s] ok  	github.com/stretchr/testify/suite	0.017s
[   62s] ?   	github.com/stretchr/testify/vendor/github.com/davecgh/go-spew/spew	[no test files]
[   62s] ?   	github.com/stretchr/testify/vendor/github.com/pmezard/go-difflib/difflib	[no test files]
[   62s] ?   	github.com/stretchr/testify/vendor/github.com/stretchr/objx	[no test files]
[   62s] + exit 0

the failed run looks like:
[   80s] $WORK/b115/mock.test -test.testlogfile=$WORK/b115/testlog.txt
[   80s] rm -r $WORK/b115/
[   80s] ok  	github.com/stretchr/testify/mock	0.020s
[   80s] ok  	github.com/stretchr/testify/require	0.020s
[   81s] $WORK/b122/suite.test -test.testlogfile=$WORK/b122/testlog.txt
[   81s] rm -r $WORK/b122/
[   81s] ok  	github.com/stretchr/testify/suite	0.013s
[   81s] error: Bad exit status from /var/tmp/rpm-tmp.BMIlfE (%check)

WTF? What failed, why ?