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

PulpQE / pulp-smash / 1314
63%

Build:
DEFAULT BRANCH: master
Ran 03 Feb 2017 02:52PM UTC
Jobs 2
Files 6
Run time 1s
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
1314

push

travis-ci

Ichimonji10
Make reset_squid() work with Squid version 4

Function `pulp_smash.utils.reset_squid` stops squid, deletes and
recreates its cache, and starts squid. As part of the cache recreation
process, it executes the following command: [1]

    squid -z

This works in most cases. However, if all of the following are true...

* The command is executed over SSH.
* The remote system has SELinux enabled.
* Squid version 4 is installed.

...then the command will leave stray files in `/dev/shm/`. These files
will have SELinux contexts set in such a way that Squid is unable to
touch them, and as a result, Squid will be unable to successfully start.

For whatever reason, a solution is to use the `--foreground` flag:

    squid -z --foreground

This flag was introduced in Squid 4: [2]

> The squid binary now has a new --foreground command line option which
> prevents the process from exiting early while background workers
> continue their processing. When run with this option Squid will now
> wait for the worker(s) to finish before exiting. Unlike the old -N
> option --foreground supports SMP workers and multi-process features.
> --foreground is particularly useful for use with -z (disk cache
> structures creation), as it allows the caller to wait until Squid has
> finished.

Thus, if Squid 4 or newer is installed, the `--foreground` command is
appended to the cache-recreation command.

[1] `sudo` is prepended if appropriate.
[2] http://www.squid-cache.org/Versions/v4/RELEASENOTES.html

379 of 601 relevant lines covered (63.06%)

1.26 hits per line

Jobs
ID Job ID Ran Files Coverage
1 1314.1 03 Feb 2017 02:52PM UTC 0
63.06
Travis Job 1314.1
2 1314.2 03 Feb 2017 02:52PM UTC 0
63.06
Travis Job 1314.2
Source Files on build 1314
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1314
  • 32c65a24 on github
  • Prev Build on master (#1311)
  • Next Build on master (#1315)
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