Skip to content

Commit

Permalink
Merge branch 'Ericsson:master' into branch-2-backup
Browse files Browse the repository at this point in the history
  • Loading branch information
feyruzb authored Oct 7, 2024
2 parents 6a44b25 + 86ce67a commit c96c10d
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ on: [push, pull_request]

permissions: read-all

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
# Note: UI related linter tests will run in the gui job.
lint:
Expand Down
16 changes: 16 additions & 0 deletions analyzer/tests/functional/analyze/test_analyze.py
Original file line number Diff line number Diff line change
Expand Up @@ -1316,6 +1316,22 @@ def test_invalid_compilation_database(self):

self.assertEqual(process.returncode, 1)

def test_disable_error_checker_tidy(self):
"""Make sure clang-diagnostic-error checker is disabled (PR #4325)"""
cmd = [self._codechecker_cmd, "check", "-l", self.__get_build_json(),
'--enable', 'clang-diagnostic-error']

process = subprocess.Popen(
cmd,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
cwd=self.test_dir,
encoding="utf-8",
errors="ignore")
out, _ = process.communicate()

self.assertNotIn("error", out)

def test_compilation_db_relative_file_path(self):
"""
Test relative path in compilation database.
Expand Down

0 comments on commit c96c10d

Please sign in to comment.