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

google / openhtf / 1901 / 1
47%
master: 63%

Build:
Build:
LAST BUILD BRANCH: test_919012532
DEFAULT BRANCH: master
Ran 14 May 2018 09:53PM UTC
Files 59
Run time 11s
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

14 May 2018 09:51PM UTC coverage: 46.709% (-0.02%) from 46.728%
TOXENV=py27

push

travis-ci

Kenadia
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

2377 of 5089 relevant lines covered (46.71%)

0.47 hits per line

Source Files on job 1901.1 (TOXENV=py27)
  • Tree
  • List 0
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 1770
  • Travis Job 1901.1
  • abeef30f on github
  • Prev Job for TOXENV=py27 on mimetypes_6 (#1894.1)
  • Next Job for TOXENV=py27 on mimetypes_6 (#1904.1)
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