repro-build-test.py: Fix date_epoch time contains byte character b''

Message ID 20230102062437.15893-1-venkata.pyla@toshiba-tsip.com
State Accepted, archived
Headers show
Series repro-build-test.py: Fix date_epoch time contains byte character b'' | expand

Commit Message

venkata.pyla@toshiba-tsip.com Jan. 2, 2023, 6:24 a.m. UTC
From: venkata pyla <venkata.pyla@toshiba-tsip.com>

Signed-off-by: venkata pyla <venkata.pyla@toshiba-tsip.com>
---
 testsuite/repro-build-test.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Uladzimir Bely Jan. 11, 2023, 5:42 a.m. UTC | #1
In the email from Monday, 2 January 2023 09:24:37 +03 user 
venkata.pyla@toshiba-tsip.com wrote:
> From: venkata pyla <venkata.pyla@toshiba-tsip.com>
> 
> Signed-off-by: venkata pyla <venkata.pyla@toshiba-tsip.com>
> ---
>  testsuite/repro-build-test.py | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 

Applied to next, thanks.

Patch

diff --git a/testsuite/repro-build-test.py b/testsuite/repro-build-test.py
index e89becf..128081e 100755
--- a/testsuite/repro-build-test.py
+++ b/testsuite/repro-build-test.py
@@ -25,7 +25,7 @@  class ReproBuild(CIBuilder):
         self.compare_repro_image('image1.tar.gz', 'image2.tar.gz')
 
     def git_last_commit_timestamp(self):
-        return process.run('git log -1 --pretty=%ct').stdout
+        return process.run('git log -1 --pretty=%ct').stdout.decode().strip()
 
     def get_image_path(self, target_name):
         image_dir = "tmp/deploy/images"