diff options
author | Joshua Watt <JPEWhacker@gmail.com> | 2023-11-03 08:26:36 -0600 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-11-09 17:33:03 +0000 |
commit | a607f435de1a04fed655a0f25d5a74724ba82ce0 (patch) | |
tree | d5c0c0fa410c2e640ef9c3b1f415f030b3b663e6 /bitbake/lib/hashserv | |
parent | 92a9d6d55ddb64a12be4ad38e2ed4280ce59ba8e (diff) | |
download | poky-a607f435de1a04fed655a0f25d5a74724ba82ce0.tar.gz |
bitbake: bitbake-hashclient: Output stats in JSON format
Outputting the stats in JSON format makes more sense as it's easier for
a downstream tool to parse if desired.
(Bitbake rev: 3a18066e479ab06bdb08e258fc4aacad5e73222e)
Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/hashserv')
-rw-r--r-- | bitbake/lib/hashserv/tests.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bitbake/lib/hashserv/tests.py b/bitbake/lib/hashserv/tests.py index a80ccd57e1..2d78f9e976 100644 --- a/bitbake/lib/hashserv/tests.py +++ b/bitbake/lib/hashserv/tests.py | |||
@@ -815,7 +815,8 @@ class TestHashEquivalenceClient(HashEquivalenceTestSetup, unittest.TestCase): | |||
815 | return "unix://" + os.path.join(self.temp_dir.name, 'sock%d' % server_idx) | 815 | return "unix://" + os.path.join(self.temp_dir.name, 'sock%d' % server_idx) |
816 | 816 | ||
817 | def test_stats(self): | 817 | def test_stats(self): |
818 | self.run_hashclient(["--address", self.server_address, "stats"], check=True) | 818 | p = self.run_hashclient(["--address", self.server_address, "stats"], check=True) |
819 | json.loads(p.stdout) | ||
819 | 820 | ||
820 | def test_stress(self): | 821 | def test_stress(self): |
821 | self.run_hashclient(["--address", self.server_address, "stress"], check=True) | 822 | self.run_hashclient(["--address", self.server_address, "stress"], check=True) |