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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user