Skip to content

Commit

Permalink
Add workspace directory when calling store command
Browse files Browse the repository at this point in the history
  • Loading branch information
bruntib committed Jun 21, 2017
1 parent 84e65f4 commit 7b2ee15
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions libcodechecker/check.py
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,15 @@ def __update_if_key_exists(source, target, key):
analyze_module.main(analyze_args)

# --- Step 3.: Store to database.
# TODO: The store command supposes that in case of PostgreSQL a
# database instance is already running. The "CodeChecker check" command
# is able to start its own instance in the given workdir, so we pass
# this argument to the argument list. Although this is not used by
# store command at all, the SQL utility is still able to start the
# database. When changing this behavior, the workspace argument should
# be removed from here.
store_args = argparse.Namespace(
workspace=args.workspace,
input=[report_dir],
input_format='plist',
jobs=args.jobs,
Expand Down

0 comments on commit 7b2ee15

Please sign in to comment.