Skip to content

Commit

Permalink
test: Chdir to output directory for OutDirectoryIsExecutable test
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonKagstrom committed Mar 16, 2024
1 parent 17db4f0 commit c03498f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/tools/basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ def runTest(self):
class OutDirectoryIsExecutable(testbase.KcovTestCase):
def runTest(self):
self.setUp()
rv,o = self.do(testbase.kcov + " echo python -V")
kcov_path = os.path.realpath(testbase.kcov)
os.chdir(os.path.realpath(testbase.outbase))
rv,o = self.do(kcov_path + " echo python -V")

assert rv == 0

0 comments on commit c03498f

Please sign in to comment.