Bug 992309 - Don't leak gcli promise to other tests; PART 2
Bug 992309 - Move getRegexForString to test file; r=mratcliffe

It's not used anywhere else, and isn't likely to be, so it's specific
to the test