Skip to content
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

Add hard-coded odometer value in VD script #2482

Conversation

dboltovskyi
Copy link
Contributor

@dboltovskyi dboltovskyi commented Nov 17, 2020

This PR is [ready] for review.

Summary

Sometimes script:

./test_scripts/API/VehicleData/OnVehicleData/003_OnVD_disallowed_after_PTU.lua

may fail on PTU step with message:

expected: UP_TO_DATE, actual value: UPDATE_NEEDED

The reason of that is odometer trigger.
In case if the difference between current odometer value and the one received on a previous PTU update exceeds exchange_after_x_kilometers parameter SDL triggers new PTU update.

ATF version

develop

Changelog

  • replace random generated value for odometer in OnVehicleData by a hard-coded one (e.g. 1). This would make odometer trigger is never happen.

CLA

@Jack-Byrne Jack-Byrne merged commit 17a7943 into smartdevicelink:develop Nov 18, 2020
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