]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-pr-commits: wrap lines over 79 chars 1699/head
authorKefu Chai <kchai@redhat.com>
Mon, 2 Nov 2020 06:40:24 +0000 (14:40 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 2 Nov 2020 06:40:24 +0000 (14:40 +0800)
Signed-off-by: Kefu Chai <kchai@redhat.com>
ceph-pr-commits/build/test_commits.py

index 72d968b8dcb394eb61831d22745917ba131e3430..8d002d086324c92857d7229eb29f8ce2520838d4 100644 (file)
@@ -26,7 +26,9 @@ class TestCommits(object):
     @classmethod
     def command(cls, command):
         print("Running command:", command)
-        return check_output(shlex.split(command), cwd=cls.ceph_checkout).decode(encoding='utf-8', errors='ignore')
+        args = shlex.split(command)
+        output = check_output(args, cwd=cls.ceph_checkout)
+        return output.decode(encoding='utf-8', errors='ignore')
 
     @classmethod
     def setup_class(cls):