Skip to content
  • Vincent Wan's avatar
    make binary_version() in utils.py more generic · d22ef878
    Vincent Wan authored
    
    
    Making binary_version() more generic by routing stderr output of
    subprocess to stdout, in case the invoked binary prints there. Also
    adding an extra optional argument to accept a matching pattern. When
    a pattern is provided, the function can use it to extract the version
    number using re.search().
    
    Signed-off-by: default avatarVincent Wan <vincent.wan@linaro.org>
    d22ef878