Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1092)

Unified Diff: test/set-profile-property

Issue 6659006: flimflam: add support for multiple profiles (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/flimflam.git@master
Patch Set: more ers comments Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/rm-profile ('k') | test/test-profile » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/set-profile-property
diff --git a/test/set-profile-property b/test/set-profile-property
new file mode 100644
index 0000000000000000000000000000000000000000..a557ac655aed65ad819e18fe5fa7dd063d408532
--- /dev/null
+++ b/test/set-profile-property
@@ -0,0 +1,13 @@
+#!/usr/bin/python
+
+import dbus, flimflam, string, sys
+
+if (len(sys.argv) < 4):
+ print "Usage: %s <profile-name> <property> <value>" % (sys.argv[0])
+ sys.exit(1)
+
+(_, name, property, value) = sys.argv
+
+flim = flimflam.FlimFlam()
+profile = flim.FindElementByNameSubstring('Profile', name)
+profile.SetProperty(property, value)
« no previous file with comments | « test/rm-profile ('k') | test/test-profile » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698