Skip to content

Instantly share code, notes, and snippets.

@raphink
Created January 18, 2012 11:36
Show Gist options
  • Save raphink/1632595 to your computer and use it in GitHub Desktop.
Save raphink/1632595 to your computer and use it in GitHub Desktop.
test-save
r = aug_match(aug, "/augeas/files/etc/yum.repos.d/new.repo/path", NULL);
CuAssertIntEquals(tc, 0, r);
r = aug_set(aug, "/files/etc/yum.repos.d/new.repo/newrepo/baseurl",
"http://foo.com/");
CuAssertIntEquals(tc, 0, r);
r = aug_save(aug);
CuAssertIntEquals(tc, 0, r);
r = aug_match(aug, "/augeas/files/etc/yum.repos.d/new.repo/path", NULL);
CuAssertIntEquals(tc, 1, r);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment