Skip to content

Update Power CTS consisting of deprecated Power properties related fields #189

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

anvesh-intel
Copy link
Contributor

Related-To: VLCLJ-2413

Signed-off-by: Anvesh Bakwad [email protected]

…elds

Related-To: VLCLJ-2413

Signed-off-by: Anvesh Bakwad <[email protected]>
Copy link
Contributor

@shubskmr shubskmr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should just remove the below check in CTS GivenValidPowerHandleWhenRequestingPowerLimitsThenExpectZesSysmanPowerGetLimitsToReturnValidPowerLimits

EXPECT_LE(pPeak.powerAC, pProperties.maxLimit);

Since min/max/default is still being supported in driver code when KMD supports it, lets not remove all tests related to it.

@@ -1002,102 +947,6 @@ TEST_F(
}
}

TEST_F(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this being removed? This test validates if kmd is sanitizing upper limits properly according to h/w limits.

Comment on lines 146 to 149
EXPECT_EQ(pproperties_initial.maxLimit, pproperties_later.maxLimit);
EXPECT_EQ(pproperties_initial.minLimit, pproperties_later.minLimit);
EXPECT_EQ(pproperties_initial.defaultLimit,
pproperties_later.defaultLimit);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This check should be okay, since we are still supporting min/max/default limits if KMD supports it. If its supported they should be same between 2 calls which is checked here.

@@ -84,41 +84,6 @@ TEST_F(
}
}
}
TEST_F(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this test failing? Why is this being removed?
We should just remove the below check in CTS GivenValidPowerHandleWhenRequestingPowerLimitsThenExpectZesSysmanPowerGetLimitsToReturnValidPowerLimits

EXPECT_LE(pPeak.powerAC, pProperties.maxLimit);

…elds

Related-To: VLCLJ-2413

Signed-off-by: Anvesh Bakwad <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants