Skip to content

Conversation

@singalsu
Copy link
Contributor

@singalsu singalsu commented Oct 9, 2020

The just display value option "-v or --value" for sof-tplgreader.py
outputs after the actual value a space character. It can cause
unexpected issues when utilizing the values in test scripts. The added
strip fixes the issue.

Fixes #408

Signed-off-by: Marc Herbert marc.herbert@intel.com
Signed-off-by: Seppo Ingalsuo seppo.ingalsuo@linux.intel.com

The just display value option "-v or --value" for sof-tplgreader.py
outputs after the actual value a space character. It can cause
unexpected issues when utilizing the values in test scripts. The added
strip fixes the issue.

Fixes thesofproject#408

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
Copy link
Collaborator

@marc-hb marc-hb left a comment

Choose a reason for hiding this comment

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

After looking around in sof-test, I think the reason no one needed this before is because the noKey option is never used. It's always key=value; + eval instead. If correct this also means this PR cannot break anything.

@singalsu singalsu marked this pull request as ready for review October 12, 2020 08:48
@singalsu singalsu requested a review from a team as a code owner October 12, 2020 08:48
Copy link

@aiChaoSONG aiChaoSONG left a comment

Choose a reason for hiding this comment

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

@marc-hb Totally agreed

@marc-hb marc-hb merged commit 5c7c0af into thesofproject:master Oct 12, 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.

sof-tplgreader.py -v returns blank after value

3 participants