tests: Fix git utils
Return appropriate information instead of entire commit diff. Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
This commit is contained in:
parent
04c346f062
commit
2a982aaf7e
@ -11,11 +11,11 @@ def get_current_commit_hash():
|
||||
local_executor = LocalExecutor()
|
||||
return local_executor.run(
|
||||
f"cd {TestRun.plugins['opencas']['repo_dir']} &&"
|
||||
f'git show HEAD --pretty=format:"%H"').stdout
|
||||
f'git show HEAD -s --pretty=format:"%H"').stdout
|
||||
|
||||
|
||||
def get_current_commit_message():
|
||||
local_executor = LocalExecutor()
|
||||
return local_executor.run(
|
||||
f"cd {TestRun.plugins['opencas']['repo_dir']} &&"
|
||||
f'git show HEAD --pretty=format:"%s"').stdout
|
||||
f'git show HEAD -s --pretty=format:"%B"').stdout
|
||||
|
Loading…
Reference in New Issue
Block a user