aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
authorMartin Afanasjew2016-01-20 06:16:10 +0100
committerMartin Afanasjew2016-01-21 05:42:23 +0100
commit274640c97a44756f1b4f32cf0adfd540cbce8b1a (patch)
treee77ad59c916dacda2323b2498febac05b1fb85f5 /Library/Homebrew/cmd
parent5786f36b624ec10c826953940c74f46041c2b50e (diff)
downloadbrew-274640c97a44756f1b4f32cf0adfd540cbce8b1a.tar.bz2
tests: use unique identifiers w/ integration tests
Commands executed during integration testing are executed in a separate process and thus generate a new result set for each command. To avoid that these results override each other, they need to have a unique `command_name`. Derive this name from the test class/name and the index of the command inside that test, resulting in identifiers like `IntegrationCommandTests#test_prefix.1 brew --prefix`. Also replaces `TEST_TMPDIR` in the arguments with `"@TMPDIR@"` to get a cleaner command identifier that is independent of the temporary directory that changes with every run.
Diffstat (limited to 'Library/Homebrew/cmd')
0 files changed, 0 insertions, 0 deletions