Skip to content
Snippets Groups Projects
  • Mark Goddard's avatar
    89fc4fa2
    dev: Improve error checking for config check functions · 89fc4fa2
    Mark Goddard authored
    Various functions in the development/testing scripts rely on 'kayobe
    configuration dump' to extract the value of flags. If this command fails
    for any reason, we should exit the script. Currently, some places we
    continue and return 1, since we check the output against the string
    'true'.
    
    The to_bool helper function handles failure by checking for a valid
    boolean output, so let's use that everywhere.
    
    Change-Id: I3a5a43fef9c3d68d0db02be12b9f892c437e513d
    89fc4fa2
    History
    dev: Improve error checking for config check functions
    Mark Goddard authored
    Various functions in the development/testing scripts rely on 'kayobe
    configuration dump' to extract the value of flags. If this command fails
    for any reason, we should exit the script. Currently, some places we
    continue and return 1, since we check the output against the string
    'true'.
    
    The to_bool helper function handles failure by checking for a valid
    boolean output, so let's use that everywhere.
    
    Change-Id: I3a5a43fef9c3d68d0db02be12b9f892c437e513d