tests: Fix two bugs in tests revealed by new remote changes

This commit is contained in:
Colin Walters 2014-12-17 10:43:01 -05:00
parent f6a6e68412
commit 9dadebb501
2 changed files with 3 additions and 7 deletions

View File

@ -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}

View File

@ -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