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

buildtesters / buildtest / 455
76%

Build:
DEFAULT BRANCH: devel
Ran 27 Apr 2020 04:59PM UTC
Jobs 6
Files 22
Run time 1min
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
455

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)

142 of 258 branches covered (55.04%)

Branch coverage included in aggregate %.

554 of 827 relevant lines covered (66.99%)

4.02 hits per line

Jobs
ID Job ID Ran Files Coverage
1 455.1 (LMOD_VERSION=6.6.2) 27 Apr 2020 04:59PM UTC 0
64.44
Travis Job 455.1
2 455.2 (LMOD_VERSION=7.8.2) 27 Apr 2020 04:59PM UTC 0
64.44
Travis Job 455.2
3 455.3 (LMOD_VERSION=6.6.2) 27 Apr 2020 04:59PM UTC 0
64.44
Travis Job 455.3
4 455.4 (LMOD_VERSION=7.8.2) 27 Apr 2020 04:59PM UTC 0
64.44
Travis Job 455.4
5 455.5 (LMOD_VERSION=6.6.2) 27 Apr 2020 04:59PM UTC 0
64.6
Travis Job 455.5
6 455.6 (LMOD_VERSION=7.8.2) 27 Apr 2020 05:01PM UTC 0
64.6
Travis Job 455.6
Source Files on build 455
Detailed source file information is not available for this build.
  • Back to Repo
  • Build #455
  • a87c1afd on github
  • Prev Build on devel (#447)
  • Next Build on devel (#461)
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