diff options
author | Adam Borowski <kilobyte@angband.pl> | 2013-11-13 14:55:25 +0100 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2013-11-15 21:03:43 +0100 |
commit | 1eb5ba87ee17c68aa806a7df4ce309b84829a593 (patch) | |
tree | e8d9c9abfbe896d9f5745bfce3eada4d061b19b3 /crawl-ref/source/ctest.cc | |
parent | 82d523b668c2c38e27918e5f5b92d0314cb115e1 (diff) | |
download | crawl-ref-1eb5ba87ee17c68aa806a7df4ce309b84829a593.tar.gz crawl-ref-1eb5ba87ee17c68aa806a7df4ce309b84829a593.zip |
Use equality rather than a prefix match for enabling tests.
So you can run "unique" without "uniquegen".
Diffstat (limited to 'crawl-ref/source/ctest.cc')
-rw-r--r-- | crawl-ref/source/ctest.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/ctest.cc b/crawl-ref/source/ctest.cc index 0e62fff589..f95852824d 100644 --- a/crawl-ref/source/ctest.cc +++ b/crawl-ref/source/ctest.cc @@ -110,7 +110,7 @@ static bool _is_test_selected(const string &testname) i < size; ++i) { const string &phrase(crawl_state.tests_selected[i]); - if (testname.find(phrase) != string::npos) + if (testname == phrase || testname == phrase + ".lua") return true; } return false; |