Skip to content
This repository has been archived by the owner on Aug 4, 2022. It is now read-only.

Test suite failure #32

Open
tillea opened this issue May 20, 2018 · 4 comments
Open

Test suite failure #32

tillea opened this issue May 20, 2018 · 4 comments
Labels

Comments

@tillea
Copy link

tillea commented May 20, 2018

Hi,
as you can read in the Debian bug report the test suite fails since some time.

COVERAGE=python-coverage PYTHON=python PYTHONPATH=`pwd` scripts/cram \
  tests
..s...ss...
# Ran 11 tests, 3 skipped, 0 failed.
python-coverage report --fail-under=100
Name                Stmts   Miss  Cover
---------------------------------------
cram/__init__.py        3      0   100%
cram/__main__.py        6      6     0%
cram/_cli.py           74      0   100%
cram/_diff.py          89      0   100%
cram/_encoding.py      67     32    52%
cram/_main.py         135      0   100%
cram/_process.py       14      0   100%
cram/_run.py           40      0   100%
cram/_test.py         104      0   100%
cram/_xunit.py         66      0   100%
---------------------------------------
TOTAL                 598     38    94%
make[2]: *** [Makefile:35: test] Error 2

I have relaxed the fail-under parameter but now there is another failure which you can read in the build log (see at the end):

COVERAGE=python-coverage PYTHON=python PYTHONPATH=`pwd` scripts/cram \
  tests
..s..!
--- tests/interactive.t
+++ tests/interactive.t.err
@@ -277,11 +277,22 @@
      \d (re)
   Accept this change? [yN] y
   patch failed
-  examples/fail.t: merge failed
-
-  # Ran 1 tests, 0 skipped, 1 failed.
-  [1]
-  $ md5 examples/fail.t examples/fail.t.err
-  .*\b0f598c2b7b8ca5bcb8880e492ff6b452\b.* (re)
-  .*\b7a23dfa85773c77648f619ad0f9df554\b.* (re)
+  Traceback (most recent call last):
+    File "/<<PKGBUILDDIR>>/tests/../scripts/cram", line 7, in <module>
+      sys.exit(cram.main(sys.argv[1:]))
+    File "/<<PKGBUILDDIR>>/cram/_main.py", line 197, in main
+      refout, postout, diff = test()
+    File "/<<PKGBUILDDIR>>/cram/_cli.py", line 121, in testwrapper
+      if _patch(patchcmd, diff):
+    File "/<<PKGBUILDDIR>>/cram/_cli.py", line 54, in _patch
+      out, retcode = execute([cmd, '-p0'], stdin=b('').join(diff))
+    File "/<<PKGBUILDDIR>>/cram/_process.py", line 53, in execute
+      out, err = p.communicate(stdin)
+    File "/usr/lib/python2.7/subprocess.py", line 473, in communicate
+      self.stdin.close()
+  IOError: [Errno 32] Broken pipe
+  [1]
+  $ md5 examples/fail.t examples/fail.t.err
+  0f598c2b7b8ca5bcb8880e492ff6b452  examples/fail.t
+  7a23dfa85773c77648f619ad0f9df554  examples/fail.t.err
   $ rm patch examples/fail.t.err
ss...
# Ran 11 tests, 3 skipped, 1 failed.
make[2]: *** [Makefile:34: test] Error 1

Could you please have a look.
Kind regards, Andreas.

@tillea
Copy link
Author

tillea commented Jun 29, 2018

Any news for this issue?

@tillea
Copy link
Author

tillea commented Jul 9, 2018

Are you able to reproduce the issue or do you need further information?

@tillea
Copy link
Author

tillea commented Jul 19, 2018

There was a further comment in the Debian bug log that suspects a correlation between this issue and python-coverage >= 4.5. What is your opinion about this?

@tillea
Copy link
Author

tillea commented Oct 24, 2018

Could you please confirm that this project is alive and you have realised this issue?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants