def METHOD_NAME(s3ql_cmd_argv):
    with tempfile.NamedTemporaryFile('wt') as fh:
        print(
            '[entry1]',
            'storage-url: local:///foo',
            'backend-options: invalid-key',
            file=fh,
            sep='\n',
        )
        fh.flush()
        proc = subprocess.Popen(
            s3ql_cmd_argv('fsck.s3ql')
            + ['--quiet', '--authfile', fh.name, '--log', 'none', 'local:///foo/bar'],
            stdin=subprocess.PIPE,
            universal_newlines=True,
        )
        proc.stdin.close()
        assert proc.wait() == 3