Skip to content

Commit

Permalink
sanitycheck: get environment regardless of option specified
Browse files Browse the repository at this point in the history
environment is passed to execution thread and should be available
regardless of SAN being enabled or not.

Signed-off-by: Anas Nashif <[email protected]>
  • Loading branch information
nashif committed Nov 5, 2019
1 parent c03af05 commit 89c8304
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/sanitycheck
Original file line number Diff line number Diff line change
Expand Up @@ -583,8 +583,8 @@ class BinaryHandler(Handler):

start_time = time.time()

env = os.environ.copy()
if options.enable_asan:
env = os.environ.copy()
env["ASAN_OPTIONS"] = "log_path=stdout:" + \
env.get("ASAN_OPTIONS", "")
if not options.enable_lsan:
Expand Down

0 comments on commit 89c8304

Please sign in to comment.