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

pywbem / pywbem / 11256
92%

Build:
DEFAULT BRANCH: master
Ran 08 Dec 2019 02:05PM UTC
Jobs 1
Files 29
Run time 3s
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
11256

push

travis-ci

andy-maier
Redesigned error handling in MOF compiler

Details:

- Introduced a new base class MOFCompileError for all exceptions raised
  in MOFCompiler.

- Introduced exception classes derived from MOFCompileError:
  - MOFParseError (already existed): MOF parsing errors
  - MOFDependencyError: MOF dependency errors (e.g. superclass not found)
  - MOFRepositoryError: Errors returned from target CIM repository. The
    CIMError exception raised by repository is attached.

- Made the __str__() result for the exceptions derived from MOFCompileError
  consistent with the result of get_err_msg(), by calling it.

- Changed the logging of MOF compile errors in the MOF compilation methods
  of FakedWBEMConnection to do no logging. Enabled the MOFCompiler init
  argument log_func to be None for disabling the logging.

- Switches the order of init arguments msg and parser_token in the
  the exceptions derived from MOFCompileError. This is of course not a
  change for the new exceptions, but it is a change for the existing
  MOFParseError exception. However, because of the parser_token argument,
  this exceptin cannot possibly have been raised by users, so this
  change is transparent for users.

- Changed all occurrences where the parsing functions raised or re-raised
  CIMError to now use one of the exceptions derived from MOFCompileError.
  This eliminates the need to set the file_line attribute on CIMError.

- When compiling a class, if automatic fixup of namespace, superclass,
  or dependent classes such as embedded classes or reference classes has
  happened, we are now expecting these to be fixed up. This is ensured
  by asserting that. Previously, this case caused the CIMError to
  be re-raised. Continuing to do so would have resulted in the creation
  of strange error messages that would likely not have been testable.

- Improved dealing with the fact that yacc does not always provide a last
  error message within p_error(), by setting a message
  "MOF grammar err... (continued)

9159 of 10621 relevant lines covered (86.23%)

0.86 hits per line

Jobs
ID Job ID Ran Files Coverage
5 11256.5 (PACKAGE_LEVEL=latest) 08 Dec 2019 02:05PM UTC 0
86.23
Travis Job 11256.5
Source Files on build 11256
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #11256
  • 0fdccf2d on github
  • Prev Build on master (#11245)
  • Next Build on master (#11288)
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