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

os-autoinst / openQA / 4058
100%

Build:
DEFAULT BRANCH: master
Ran 20 Dec 2016 10:27AM UTC
Jobs 1
Files 106
Run time 8s
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
4058

push

travis-ci

coolo
Have initdb exit 4 when no init or upgrade is done (#1087)

022553fd made `initdb --init_database` silently return 0,
instead of crashing with an uncaught exception, when the db
is already initialized. The exception was bad, of course, but
the new behaviour is a bit of a problem for things like ansible
or puppet or salt, where it's Good Practice for actions to be
aware of whether they changed anything. It's not longer possible
to know whether a run of `initdb` a) initialized the database, b)
upgraded the database or c) did nothing because the database was
fine.

So, this makes it print an informative message about what it did
and exit 0 if it actually did anything; if the db was already
initialized and up to date, it exits 4 (a distinctive code that
ansible plays etc. can recognize).

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

5146 of 6987 relevant lines covered (73.65%)

124.36 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
4
100.0
lib/OpenQA/WebAPI.pm
24
100.0
lib/OpenQA/Utils.pm
36
100.0
lib/OpenQA/WebAPI/Controller/API/V1/Job.pm
47
100.0
lib/OpenQA/Schema/Result/Jobs.pm
Jobs
ID Job ID Ran Files Coverage
1 4058.1 20 Dec 2016 10:27AM UTC 0
73.65
Travis Job 4058.1
Source Files on build 4058
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #4058
  • 7290847b on github
  • Prev Build on master (#4043)
  • Next Build on master (#4062)
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