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

tomerfiliba / plumbum / 1051
85%

Build:
DEFAULT BRANCH: master
Ran 30 Dec 2018 11:49PM UTC
Jobs 7
Files 39
Run time 14min
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
1051

push

travis-ci

henryiii
Fix bug #395. (#434)

* Add a test demonstrating issue #395

* Fix bug #395

Even if the child process has exited, it may have written data that is
still in the pipe buffer. We need to make sure to drain it with one
final round of `select()`ing.

Note that this differs from the shell semantics of `| tee file.out`;
In a shell pipeline, the right-hand-side has no direct reference to
the left-hand-side, and so `tee` reads until it gets an `EOF` on the
pipe, normally caused by all write-side ends being closed. We can
demonstrate this with a pipeline that causes the write end to outlive
the left-hand child:

```
( sleep 500 & disown; echo hi ) | tee out.log
```

After the `hi` is printed, we can observe that the left-hand `bash` is
dead, but `tee` still has not returned:

```
$ pstree -p 7273
bash(7273)───tee(1790)
```

Killing the `sleep` makes the whole pipeline exit.

I chose to preserve the original `plumbum` semantics of "exit on child
exit" instead of the shell semantics, but wanted to call out the
difference.

* Fix a typo

1170 of 1685 branches covered (69.44%)

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

3857 of 4673 relevant lines covered (82.54%)

5.67 hits per line

Jobs
ID Job ID Ran Files Coverage
2 1051.2 (PYV=2.7) 30 Dec 2018 11:49PM UTC 0
81.19
Travis Job 1051.2
3 1051.3 (PYV=3.4) 30 Dec 2018 11:51PM UTC 0
81.02
Travis Job 1051.3
4 1051.4 (PYV=3.5) 30 Dec 2018 11:52PM UTC 0
80.89
Travis Job 1051.4
5 1051.5 (PYV=3.6) 30 Dec 2018 11:52PM UTC 0
80.89
Travis Job 1051.5
6 1051.6 (PYV=3.7) 30 Dec 2018 11:54PM UTC 0
80.87
Travis Job 1051.6
8 1051.8 (PY3=2 PYV=Mac2) 30 Dec 2018 11:56PM UTC 0
81.34
Travis Job 1051.8
9 1051.9 (PY3=3 PYV=Mac3) 31 Dec 2018 12:04AM UTC 0
81.04
Travis Job 1051.9
Source Files on build 1051
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1051
  • 14718bfc on github
  • Prev Build on master (#1050)
  • Next Build on master (#1052)
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