Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refs #12274 - test/cli/more-projects_test.py: made `test_shared_items…
Browse files Browse the repository at this point in the history
…_project` location-independent
firewave committed Nov 13, 2024
1 parent 9130b3b commit c2f4cb4
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions test/cli/more-projects_test.py
Original file line number Diff line number Diff line change
@@ -5,6 +5,7 @@
import sys
from testutils import cppcheck, assert_cppcheck

__script_dir = os.path.dirname(os.path.abspath(__file__))

def test_project_force_U(tmpdir):
# 10018
@@ -845,19 +846,16 @@ def test_compdb_D(tmpdir):
assert ret == 0, stdout


def test_shared_items_project(tmpdir = ""):
# tmpdir is unused
solutionDir = os.path.join(os.getcwd(), 'shared-items-project')
solutionFile = os.path.join(solutionDir, 'Solution.sln')
def test_shared_items_project():
solution_file = os.path.join('shared-items-project', 'Solution.sln')

args = [
'--platform=win64',
'--project={}'.format(solutionFile),
'--project-configuration=Release|x64',
'-j1'
'--project={}'.format(solution_file),
'--project-configuration=Release|x64'
]

exitcode, stdout, stderr = cppcheck(args)
exitcode, stdout, stderr = cppcheck(args, cwd=__script_dir)
assert exitcode == 0
lines = stdout.splitlines()

0 comments on commit c2f4cb4

Please sign in to comment.