we don't need to hardcode pair styles to skip specific tests, but use YAML file for it
This commit is contained in:
@ -1188,21 +1188,6 @@ TEST(PairStyle, single)
|
||||
GTEST_SKIP();
|
||||
}
|
||||
|
||||
// The single function in EAM is different from what we assume
|
||||
// here, therefore we have to skip testing those pair styles.
|
||||
// Pair styles colloid and yukawa/colloid are also not compatible with this single tester
|
||||
if ((test_config.pair_style.substr(0, 7) == "colloid") ||
|
||||
(test_config.pair_style.substr(0, 14) == "yukawa/colloid") ||
|
||||
(test_config.pair_style.substr(0, 3) == "dpd") ||
|
||||
(test_config.pair_style.substr(0, 3) == "eam") ||
|
||||
((test_config.pair_style.substr(0, 6) == "hybrid") &&
|
||||
(test_config.pair_style.find("eam") != std::string::npos))) {
|
||||
if (!verbose) ::testing::internal::CaptureStdout();
|
||||
cleanup_lammps(lmp, test_config);
|
||||
if (!verbose) ::testing::internal::GetCapturedStdout();
|
||||
GTEST_SKIP();
|
||||
}
|
||||
|
||||
// now start over
|
||||
if (!verbose) ::testing::internal::CaptureStdout();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user