As per my other note, this could be

```ruby
def result_indicates_partition_table?(result)
  # parted exits with 1 but writes this oddly spelled error to stdout.
  missing = result.exit_status == 1 && result.output =~ /unrecognised disk label/
  !missing
end
```