diff options
author | Joshua Watt <JPEWhacker@gmail.com> | 2023-11-03 08:26:27 -0600 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-11-09 17:33:02 +0000 |
commit | e31396eb1c7a224d0db5000e61209d0bdb8eb16c (patch) | |
tree | 52673e27c1b4acdbeb511a6b953cc9901e5ab179 /bitbake/lib/hashserv/tests.py | |
parent | cfbb1d2cc01565610ba06a755e10425ff2076d9b (diff) | |
download | poky-e31396eb1c7a224d0db5000e61209d0bdb8eb16c.tar.gz |
bitbake: hashserv: Implement read-only version of "report" RPC
When the hash equivalence server is in read-only mode, it should still
return a unihash for a given "report" call if there is one.
(Bitbake rev: d0bbb98553f5f3451606bd5f089b36cfe4219dc2)
Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/hashserv/tests.py')
-rw-r--r-- | bitbake/lib/hashserv/tests.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/hashserv/tests.py b/bitbake/lib/hashserv/tests.py index 268b27006f..e9a361dc4b 100644 --- a/bitbake/lib/hashserv/tests.py +++ b/bitbake/lib/hashserv/tests.py | |||
@@ -387,8 +387,8 @@ class HashEquivalenceCommonTests(object): | |||
387 | outhash2 = '3c979c3db45c569f51ab7626a4651074be3a9d11a84b1db076f5b14f7d39db44' | 387 | outhash2 = '3c979c3db45c569f51ab7626a4651074be3a9d11a84b1db076f5b14f7d39db44' |
388 | unihash2 = '90e9bc1d1f094c51824adca7f8ea79a048d68824' | 388 | unihash2 = '90e9bc1d1f094c51824adca7f8ea79a048d68824' |
389 | 389 | ||
390 | with self.assertRaises(ConnectionError): | 390 | result = ro_client.report_unihash(taskhash2, self.METHOD, outhash2, unihash2) |
391 | ro_client.report_unihash(taskhash2, self.METHOD, outhash2, unihash2) | 391 | self.assertEqual(result['unihash'], unihash2) |
392 | 392 | ||
393 | # Ensure that the database was not modified | 393 | # Ensure that the database was not modified |
394 | self.assertClientGetHash(rw_client, taskhash2, None) | 394 | self.assertClientGetHash(rw_client, taskhash2, None) |