ubicloud/rhizome/common
Hadi Moshayedi 269cde83ee Expand r in util.rb to get a list of expected exit statuses
By default, `r` threw exceptions whenever the exit status was not 0.
However, in some scenarios the caller is ok with some exit statuses. For
example, when the caller wants to stop a systemd unit if it exists. In
which case, it is ok if the exit status is 5.

This change adds the `expect:` parameter to `r` to allow for that:

```
def r(commandline, stdin: "", expect: [0])
```
2025-01-10 19:21:41 -08:00
..
bin Fix variable typo 2024-10-31 11:11:46 +02:00
lib Expand r in util.rb to get a list of expected exit statuses 2025-01-10 19:21:41 -08:00
spec Support arm64 binaries as well as x64 binaries 2023-11-14 13:04:31 -08:00
Gemfile Restructure rhizome folder to accommodate new services 2023-09-06 00:51:26 +03:00