mirror of
https://github.com/ostreedev/ostree.git
synced 2025-01-23 02:05:01 +03:00
tests: Fix two bugs in tests revealed by new remote changes
This commit is contained in:
parent
f6a6e68412
commit
9dadebb501
@ -46,7 +46,6 @@ ostree admin --sysroot=sysroot upgrade --os=testos
|
||||
bootcsum2=${bootcsum}
|
||||
os_repository_new_commit "1"
|
||||
bootcsum3=${bootcsum}
|
||||
ostree --repo=sysroot/ostree/repo remote add --set=gpg-verify=false testos file://$(pwd)/testos-repo testos/buildmaster/x86_64-runtime
|
||||
ostree admin --sysroot=sysroot upgrade --os=testos
|
||||
|
||||
rev=${newrev}
|
||||
|
@ -64,12 +64,9 @@ assertEquals(deployments.length, 0);
|
||||
//// Add the remote, and do a pull
|
||||
|
||||
let [,sysrootRepo] = sysroot.get_repo(null);
|
||||
let sysrootRepoConfig = sysrootRepo.get_config();
|
||||
let testosRefSection = 'remote "testos"';
|
||||
sysrootRepoConfig.set_string(testosRefSection, 'url', 'file://' + upstreamRepo.get_path().get_path());
|
||||
sysrootRepoConfig.set_boolean(testosRefSection, 'gpg-verify', false);
|
||||
sysrootRepoConfig.set_string_list(testosRefSection, 'branches', [runtimeRef]);
|
||||
|
||||
sysrootRepo.remote_add('testos', 'file://' + upstreamRepo.get_path().get_path(),
|
||||
GLib.Variant.new('a{sv}', {'gpg-verify': GLib.Variant.new('b', false),
|
||||
'branches': GLib.Variant.new('as', [runtimeRef])}), null);
|
||||
sysrootRepo.pull('testos', null, 0, null, null);
|
||||
|
||||
//// TEST: We can deploy one tree
|
||||
|
Loading…
x
Reference in New Issue
Block a user