Skip to content

Commit

Permalink
TST: lib/test: skip_ci: detect dpkg-buildpackage environments
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Wagner committed Oct 29, 2021
1 parent 5b1ba86 commit 7ebb8e1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ CHANGELOG

### Tests
- Add GitHub Action to run regexploit on all Python, JSON and YAML files (PR#2059 by Sebastian Wagner).
- `intelmq.lib.test`:
- Decorator `skip_ci` also detects `dpkg-buildpackage` environments by checking the environment variable `DEB_BUILD_ARCH` (PR#2123 by Sebastian Wagner).

### Tools

Expand Down
3 changes: 2 additions & 1 deletion intelmq/lib/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ def skip_exotic():


def skip_ci():
return unittest.skipIf(os.getenv('CI') == 'true', 'Test disabled on CI.')
return unittest.skipIf(os.getenv('CI') == 'true' or os.environ.get('DEB_BUILD_ARCH'),
'Test disabled on CI.')


def skip_build_environment():
Expand Down

0 comments on commit 7ebb8e1

Please sign in to comment.