From 2a982aaf7e110b75fc4d9e71a7a5bc966f1c02de Mon Sep 17 00:00:00 2001 From: Robert Baldyga Date: Thu, 31 Oct 2019 14:58:29 +0100 Subject: [PATCH] tests: Fix git utils Return appropriate information instead of entire commit diff. Signed-off-by: Robert Baldyga --- test/functional/api/cas/git.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/functional/api/cas/git.py b/test/functional/api/cas/git.py index afd6950..52da21c 100644 --- a/test/functional/api/cas/git.py +++ b/test/functional/api/cas/git.py @@ -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