kfdtest: Consolidate log messages for skipped tests

When skipping a test, the output should be:
Skipping test: <reason>.

This will allow for easier identification, automation and general readability

Change-Id: I98bda1c068f9dbc83aeea74f642b6101121f234d


[ROCm/ROCR-Runtime commit: f2bd7e1d52]
This commit is contained in:
Kent Russell
2018-08-13 10:18:04 -04:00
parent e50ef7ad47
commit b2e7a6e2a8
11 changed files with 58 additions and 59 deletions
@@ -166,7 +166,7 @@ TEST_F(KFDPerfCountersTest, RegisterTrace) {
}
if (!priv_block_found) {
LOG() << "No privileged block is found. Skipping RegisterTrace test."
LOG() << "Skipping test: No privileged block is found."
<< std::endl;
return;
}
@@ -207,14 +207,13 @@ TEST_F(KFDPerfCountersTest, StartStopQueryTrace) {
}
if (!priv_block_found) {
LOG() << "No privileged block is found. Skipping StartStopQuery test."
LOG() << "Skipping test: No privileged block is found."
<< std::endl;
return;
}
if (getuid()) { /* Non-root */
LOG() << "Privileged counters requires the user as root." << std::endl
<< "Skipping StartStopQuery test." << std::endl;
LOG() << "Skipping test: Privileged counters requires the user as root." << std::endl;
return;
}