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

buildtesters / buildtest / 455 / 5
76%
devel: 76%

Build:
DEFAULT BRANCH: devel
Ran 27 Apr 2020 04:59PM UTC
Files 22
Run time 5s
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

27 Apr 2020 04:58PM UTC coverage: 64.604% (-0.8%) from 65.373%
LMOD_VERSION=6.6.2

push

travis-ci-com

web-flow
Status check (#286)

* add implementation to report test state based on 'status' object defined
in Buildspec.
Add method check_returncode and check_regex to BuilderBase class that
return boolean True/False.
If status is not defined, we perform check based on returncode from
test. If its a 0, test_state=PASS otherwise set to FAIL.
We add the following keys to self.metadata: 'outfile', 'errfile',
'TEST_STATE'.
In buildtest/menu/build.py we count PASS/FAIL test based on
self.metadata['TEST_STATE']

* make use of self.metadata['outfile'] and self.metadata['errfile'] when
writing output and error stream to files.

* add docstring for check_returncode and check_regex method in BuilderBase

* fix black issue

Signed-off-by: Shahzeb Siddiqui <shahzebmsiddiqui@gmail.com>

* adding utility method read_file and write_file for reading and writing
files. Refactor Builderbase to use read_file and write_file when
writing output and error file.
Adding regression test for checking the two utility methods.

* forgot to address an issue raised by @vsoch regarding key search
in status dictionary.

* add method read, write which are doing the read and write operation.
Refactor read_file and write_file.
We expect input content for writing to be a string.

* remove method 'read' and  'write' and merge them to 'read_file' and
'write_file'

* applying black

Signed-off-by: Shahzeb Siddiqui <shahzebmsiddiqui@gmail.com>

* update comments near method invocation 'self.check_regex',
'self.check_returncode'
Remove if conditions in self.check_returncode

* set test_state=FAIL as default value.
self.check_regex was spliting each string by character which was not
right.

* applying black

* refactor read_file and write_file so that we raise error when
input type is invalid. Rewrite regtest for read_file, write_file based
on recent change.
Update docstrings

* Add print statement, and increase coverage for file
buildtest/utils/fil... (continued)

154 of 270 branches covered (57.04%)

Branch coverage included in aggregate %.

556 of 829 relevant lines covered (67.07%)

0.67 hits per line

Source Files on job 455.5 (LMOD_VERSION=6.6.2)
  • Tree
  • List 0
  • Changed 4
  • Source Changed 4
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 21
  • Travis Job 455.5
  • a87c1afd on github
  • Prev Job for LMOD_VERSION=6.6.2 on devel (#447.1)
  • Next Job for LMOD_VERSION=6.6.2 on devel (#461.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc