[testsharder] Remove space in shard name.
This doesn't remove the spaces in the Nuc shard name, but that seems to
not have an issue anyway. However the QEMU shard uses the shard name as
a filename in one of the cmds it runs and that causes an issue because
the spaces aren't escaped.
Bug: IN-1231 #comment
Change-Id: I35d3ca7b9002b8eb2b7bbd619567c41b92f6b8b5
diff --git a/testsharder/shard.go b/testsharder/shard.go
index 54c34e9..01a25ee 100644
--- a/testsharder/shard.go
+++ b/testsharder/shard.go
@@ -81,7 +81,7 @@
for _, test := range shard.Tests {
if multiplier.Target == test.Name && multiplier.OS == test.OS {
shards = append(shards, &Shard{
- Name: shard.Name + " - " + normalizeTestName(test.Name),
+ Name: shard.Name + "-" + normalizeTestName(test.Name),
Tests: multiplyTest(test, multiplier.TotalRuns),
Env: shard.Env,
})
diff --git a/testsharder/shard_test.go b/testsharder/shard_test.go
index c34e702..20b93a8 100644
--- a/testsharder/shard_test.go
+++ b/testsharder/shard_test.go
@@ -221,7 +221,7 @@
tests = append(tests, test)
}
return &Shard{
- Name: env.Name() + " - " + test.Name,
+ Name: env.Name() + "-" + test.Name,
Tests: tests,
Env: env,
}