• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

jadsonbr / pyreportjasper / 274
46%
master: 45%

Build:
Build:
LAST BUILD BRANCH: fix_subprocess_output_handling
DEFAULT BRANCH: master
Ran 02 Jul 2018 09:23AM UTC
Jobs 2
Files 97
Run time 12s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
274

Pull #33

travis-ci

web-flow
Python2 codepath is incorrect as check_call() does NOT capture output.
Also, the Python2/3 exception handling path is suboptimal as firstly,
logger.exception() outputs the exception info already (since exc_info is
True by default), and secondly, in both cases it has access to any output
generated which may as well be the msg argument.

(I note that my previous PR#28 didn't address this wider point). For example,
without the fix, the logged output is something like this:

=========
[2018-07-02 09:14:55,059: ERROR/ForkPoolWorker-15] Command '/usr/local/lib/python3.6/dist-packages/pyreportjasper/jasperstarter/bin/jasperstarter --locale en_GB process "/main/srhaque/Innovatieltd/testdjango/paiyroll/report/JasperReports/pre_approval.jrxml" -o "/tmp/Acme Accountants/Advanced Mechanics/m1/2018-07-28/pre_approval" -f pdf -t jsonql --data-file '/tmp/Acme Accountants/Advanced Mechanics/m1/2018-07-28/snapshot.json' --jsonql-query 'employee.*'' returned non-zero exit status 1.
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/pyreportjasper/jasperpy.py", line 188, in execute
    self.command, shell=True, check=True).returncode
  File "/usr/lib/python3.6/subprocess.py", line 418, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '/usr/local/lib/python3.6/dist-packages/pyreportjasper/jasperstarter/bin/jasperstarter --locale en_GB process "/main/srhaque/Innovatieltd/testdjango/paiyroll/report/JasperReports/pre_approval.jrxml" -o "/tmp/Acme Accountants/Advanced Mechanics/m1/2018-07-28/pre_approval" -f pdf -t jsonql --data-file '/tmp/Acme Accountants/Advanced Mechanics/m1/2018-07-28/snapshot.json' --jsonql-query 'employee.*'' returned non-zero exit status 1.
[2018-07-02 09:14:55,062: ERROR/ForkPoolWorker-15] Unhandled exception
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/pyreportjasper/jasperpy.py", line 188, in execute
    self.command, shell=True, check=True).returncod... (continued)
Pull Request #33: Python2 codepath is incorrect as check_call() does NOT capture output.

2 of 2 new or added lines in 1 file covered. (100.0%)

8523 of 18703 relevant lines covered (45.57%)

0.46 hits per line

Jobs
ID Job ID Ran Files Coverage
3 274.3 02 Jul 2018 09:24AM UTC 0
45.91
Travis Job 274.3
4 274.4 02 Jul 2018 09:23AM UTC 0
45.94
Travis Job 274.4
Source Files on build 274
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #274
  • Pull Request #33
  • PR Base - master (#268)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc