[OSSTEST PATCH 65/82] hsot reuse: Make share type hash more easily greppable

Ian Jackson posted 82 patches 5 years ago
[OSSTEST PATCH 65/82] hsot reuse: Make share type hash more easily greppable
Posted by Ian Jackson 5 years ago
From: Ian Jackson <ian.jackson@eu.citrix.com>

Use - and _ to make up the base64 alphabet instead of + and /

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
---
 ts-host-reuse | 1 +
 1 file changed, 1 insertion(+)

diff --git a/ts-host-reuse b/ts-host-reuse
index 701070b2..0ecbb0bd 100755
--- a/ts-host-reuse
+++ b/ts-host-reuse
@@ -75,6 +75,7 @@ sub compute_test_sharetype () {
 	push @runvartexts, "$key=$r{$key}";
     }
     my $digest = sha224_base64("@runvartexts");
+    $digest =~ y{/+}{-_};
     $sharetype = "test-$flight-$digest";
     logm "share type $sharetype; hash is of: @runvartexts";
     return $sharetype;
-- 
2.20.1