Skip to content

Commit

Permalink
9pm: use 9pm root as base for project root
Browse files Browse the repository at this point in the history
Signed-off-by: Richard Alpe <[email protected]>
  • Loading branch information
rical committed Jan 7, 2025
1 parent 2823a24 commit 27c2de4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 9pm.py
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ def write_report_project_info(file, config):
return None

name = config['PROJECT-NAME']
root = config['PROJECT-ROOT']
root = os.path.join(ROOT_PATH, config['PROJECT-ROOT'])
version = run_git_cmd(root, ["describe", "--tags", "--always"])
sha = run_git_cmd(root, ['rev-parse', 'HEAD'])[:12]

Expand Down Expand Up @@ -714,7 +714,7 @@ def main():
if 'PROJECT-NAME' in proj:
str = f"\nTesting {proj['PROJECT-NAME']}"
if 'PROJECT-ROOT' in proj:
str += f" ({run_git_cmd(proj['PROJECT-ROOT'], ['rev-parse', 'HEAD'])[:12]})"
str += f" ({run_git_cmd(os.path.join(ROOT_PATH, proj['PROJECT-ROOT']), ['rev-parse', 'HEAD'])[:12]})"
cprint(pcolor.yellow, str)

cmdl = {'name': 'command-line', 'suite': []}
Expand Down

0 comments on commit 27c2de4

Please sign in to comment.