Skip to content

Commit

Permalink
csmock: explicitly specify extra env var for coverity 2023.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
rhyw committed Sep 20, 2023
1 parent e9c9865 commit 373484c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions py/csmock
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ import time

# local imports
import csmock.common.util
from csmock.common.util import get_coverity_version
from csmock.common.util import shell_quote
from csmock.common.util import strlist_to_shell_cmd
from csmock.common.results import FatalError
Expand Down Expand Up @@ -516,6 +517,9 @@ class ScanProps:
return cmd_out

def wrap_shell_cmd_by_env(self, cmd_in, extra_env={}):
# cov-build needs extra env vars below when running under 2023.6.1.
if get_coverity_version() == "2023.6.1":
extra_env.update({"COVERITY_POSIX_SPAWN_FALLBACK": 1})
# merge self.env with extra_env
env = self.env.copy()
env.update(extra_env)
Expand Down

0 comments on commit 373484c

Please sign in to comment.