facebook/huxley — pull request #54 by xymostech (2014-03-18 05:57:24+00:00)
Title: Properly handle specified test names

Before, the available tests were just checked against the passed in comma-separated string of test names, and if the test name was found somewhere in that string it would be run. This caused problems when you had two tests like `test` and `bettertest`, because if you passed to run `bettertest`, it runs both `bettertest` and `test` as well (since `test` is a substring of `bettertest`, and thus it will be found in the passed in string `bettertest`).

This fixes the problem by splitting the string of test names on commas (it specifies that the list of tests should be comma-separated in the usage). This way, the `in` below (line 160) checks if the test name is in the list of tests, and doesn't have any weird substring behavior.

I've signed the CLA already. Thanks!