The test case assumed that it was not possible to set uid:0 on a file,
which is to say that the current user is not a member of group
0. That's an environmental assumption which is not universal (I am a
counterexample).
Modified lib/bup/t/tmetadata.py
m.gid = 0;
m.apply_to_path(path, restore_numeric_ids=True)
errmsg = str(helpers.saved_errors[0]) if helpers.saved_errors else ''
- WVPASS(errmsg.startswith('lchown: '))
+ WVPASS(errmsg.startswith('lchown: ') or os.stat(path).st_gid == m.gid)
clear_errors()
finally:
subprocess.call(['rm', '-rf', tmpdir])