Skip to content

Commit

Permalink
[cmd] Parse command exits with error in case of duplicated suppress c…
Browse files Browse the repository at this point in the history
…omments
  • Loading branch information
zomen2 committed May 6, 2021
1 parent 68a15a8 commit 19cd926
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
8 changes: 5 additions & 3 deletions web/tests/functional/store/test_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import subprocess
import unittest

from libtest import codechecker, env, plist_test
from libtest import codechecker, env

from codechecker_common import util

Expand Down Expand Up @@ -129,9 +129,11 @@ def test_store_multiple_report_dirs(self):

common_report_dir = os.path.join(self._temp_workspace, 'reports')
report_dir1 = \
os.path.join(self._temp_workspace, common_report_dir, 'report_dir1')
os.path.join(self._temp_workspace, common_report_dir,
'report_dir1')
report_dir2 = \
os.path.join(self._temp_workspace, common_report_dir, 'report_dir2')
os.path.join(self._temp_workspace, common_report_dir,
'report_dir2')

cfg['reportdir'] = report_dir1
cfg['checkers'] = [
Expand Down
7 changes: 2 additions & 5 deletions web/tests/functional/suppress/test_suppress_generation.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,14 @@

import logging
import os
import inspect
import shlex
import subprocess
from subprocess import CalledProcessError
import unittest

from codechecker_api.codeCheckerDBAccess_v6.ttypes import ReviewStatus

from libtest import env
from libtest import codechecker
from libtest import env, codechecker
from libtest.thrift_client_to_db import get_all_run_results


Expand Down Expand Up @@ -70,8 +68,7 @@ def setUp(self):
'There should be only one run for this test.')
self._runid = test_runs[0].runId
self._run_name = test_runs[0].name
self._test_directory = os.path.dirname(os.path.abspath(inspect.getfile(
inspect.currentframe())))
self._test_directory = os.path.dirname(os.path.realpath(__file__))

def test_suppress_import(self):
"""
Expand Down

0 comments on commit 19cd926

Please sign in to comment.