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

google / openhtf / 1896
47%
master: 63%

Build:
Build:
LAST BUILD BRANCH: test_853837558
DEFAULT BRANCH: master
Ran 14 May 2018 09:34PM UTC
Jobs 1
Files 59
Run time 4s
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
1896

push

travis-ci

Kenneth Schiller
OpenHTF: Guess mimetype from attachment name.

Rationale: In attach_from_file() we try to guess mimetype from the source filename. It has sometimes surprised users that the mimetype is not inferred from the attachment name as well.

TESTED=
Before: `complete_test_output.txt` gets `type: BINARY` (integer=5)
e.g. https://www.mfg-inspector.com/pr/chauffeur/testrun/chauffeur/QQABTkEAAQYBY0GFCrI=.raw
After: `complete_test_output.txt` gets `type: TEXT_UTF8` (integer=7)
e.g. https://www.mfg-inspector.com/pr/chauffeur/testrun/chauffeur/QQABTkEAAQYBY0arU1Q=.raw

The attachment `complete_test_output.txt` is attached using `test.attach_from_file(open_file.name, 'complete_test_output.txt')`. (In this case, open_file.name is something like `/tmp/asdfljk` and has no extension.)
https://cs.corp.google.com/piper///depot/google3/third_party/car/hw/testing/framework/logs.py?rcl=195879010&l=125

PiperOrigin-RevId: 196022999

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

2377 of 5089 relevant lines covered (46.71%)

0.47 hits per line

Jobs
ID Job ID Ran Files Coverage
1 1896.1 (TOXENV=py27) 14 May 2018 09:34PM UTC 0
46.71
Travis Job 1896.1
Source Files on build 1896
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1896
  • 0f9ec436 on github
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