-
Notifications
You must be signed in to change notification settings - Fork 22
Datamodel markers should ignore marker value as zero #253
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
Changes from all commits
6a45d71
09e620a
4f4b05a
c564aea
69681a8
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -39,9 +39,11 @@ static bool checkForEmptyString( char* valueString ) | |
| { | ||
| // rbusInterface implementation explicitly adds string as "NULL" for parameters which doesn't exist on device | ||
| // Consider "NULL" string value as qualified for empty string | ||
| if(strlen(valueString) < 1 || !strncmp(valueString, " ", 1) || !strncmp(valueString, "NULL", 4)) | ||
| // If the string has zero value it should be ignored | ||
| if(strlen(valueString) < 1 || !strncmp(valueString, " ", 1) || !strcmp(valueString, "0") || !strncmp(valueString, "NULL", 4)) | ||
| { | ||
| isEmpty = true ; | ||
| T2Debug("Marker Value is empty or zero or NULL\n"); | ||
shibu-kv marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| } | ||
|
Comment on lines
+42
to
47
|
||
| } | ||
| else | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
|
|
@@ -170,7 +170,7 @@ def test_xconf_retry_for_connection_errors(): | |||||||
| ERROR_MSG = "Waiting for 180 sec before trying fetchRemoteConfiguration, No.of tries" | ||||||||
| assert ERROR_MSG in grep_T2logs(ERROR_MSG) | ||||||||
|
|
||||||||
| pytest.mark.run(order=14) | ||||||||
| pytest.mark.run(order=15) | ||||||||
| def test_xconf_datamodel(): | ||||||||
|
Comment on lines
+173
to
174
|
||||||||
| kill_telemetry(9) | ||||||||
| RUN_START_TIME = dt.now() | ||||||||
|
|
@@ -187,16 +187,18 @@ def test_xconf_datamodel(): | |||||||
| kill_telemetry(29) | ||||||||
| sleep(5) | ||||||||
| assert "IUI_accum" in grep_T2logs("cJSON Report") | ||||||||
| assert "Test_datamodel_1" in grep_T2logs("cJSON Report") | ||||||||
| rbus_set_data("Device.DeviceInfo.X_RDKCENTRAL-COM.IUI.Version", "string", "0.1") | ||||||||
| sleep(2) | ||||||||
| kill_telemetry(29) | ||||||||
| sleep(5) | ||||||||
| kill_telemetry(29) | ||||||||
| sleep(5) | ||||||||
| sleep(7) | ||||||||
| assert "IUI_accum\":\"0.1" in grep_T2logs("cJSON Report") | ||||||||
| rbus_set_data("Device.DeviceInfo.X_RDKCENTRAL-COM.IUI.Version", "string", "0") | ||||||||
| sleep(2) | ||||||||
|
||||||||
| sleep(2) | |
| sleep(2) | |
| clear_T2logs() |
Copilot
AI
Feb 9, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pytest.mark.run(...) is missing the @ decorator prefix here, so the mark is never applied and test ordering will not follow the configured order value.
Uh oh!
There was an error while loading. Please reload this page.