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

DBuildService / dockerfile-parse / 228 / 6
97%
master: 97%

Build:
DEFAULT BRANCH: master
Ran 08 Feb 2018 07:03PM UTC
Files 4
Run time 0s
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

08 Feb 2018 06:59PM UTC coverage: 95.302% (+1.1%) from 94.17%
OS=fedora OS_VERSION=27 PYTHON_VERSION=3

push

travis-ci

lcarva
Combine environment variable substitution with quote removal

This fixes the tests added in the previous commit.

The EnvSubst class is renamed to WordSplitter, and provides
two methods:
* dequote() returns the string with quotes/escaped consumed
* split() breaks the string into words at whitespace

This new class can be told whether or not to apply
environment variable substitutions.

The way we process ENV/LABEL instructions is now to first
break the instruction value into words, without quoting or
applying environment variable substitutions. We can then
inspect the first word to find out which key/value form is
in use ("key=value" vs "key the value").

Based on this we now apply environment variable substitution
to each key and value separately, consuming quotes and
escape characters.

A similar process is used when modifying an ENV/LABEL
instruction, with the exception that key=value forms are
left alone with quotes and escapes intact unless modified.
This is the reason for changing some existing test cases.

Signed-off-by: Tim Waugh <twaugh@redhat.com>

426 of 447 relevant lines covered (95.3%)

0.95 hits per line

Source Files on job 228.6 (OS=fedora OS_VERSION=27 PYTHON_VERSION=3)
  • Tree
  • List 0
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 228
  • Travis Job 228.6
  • 6e526d5e on github
  • Prev Job for OS=fedora OS_VERSION=27 PYTHON_VERSION=3 on master (#204.6)
  • Next Job for OS=fedora OS_VERSION=27 PYTHON_VERSION=3 on master (#231.6)
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

© 2025 Coveralls, Inc