OpenEneaLinux / rt-tools

Collection of Linux tools for achieving real-time performance
BSD 3-Clause "New" or "Revised" License
32 stars 17 forks source link

Convert numbers to decimal representation #2

Closed petris closed 7 years ago

petris commented 7 years ago

Test doesn't work with hexadecimal numbers. Convert them to decimal representation before comparing them otherwise the script aborts when it encounters number with non-decimal-digit character.

matslil commented 7 years ago

Hi Petris,

Thanks for your pull request!

What is the test case that fails, and do you have any console output to describe the failure?

petris commented 7 years ago

Hi, try e.g. partrt run -c 0xf rt true it fails with /usr/bin/partrt: line 788: [: f: integer expression expected the same can be triggered using move command

matslil commented 7 years ago

Ok, I see. I was thinking unit test, done too much development on unit tests lately apparently... It looks good to me.

matslil commented 7 years ago

It's merged now, thanks for your contribution Petris!