test: Allow test/test-call-settings to exit
authorBertrand Aygon <bertrand.aygon@intel.com>
Fri, 4 Mar 2011 09:53:36 +0000 (10:53 +0100)
committerDenis Kenzior <denkenz@gmail.com>
Tue, 8 Mar 2011 19:21:52 +0000 (13:21 -0600)
if new value is equal to actual value

test/test-call-settings

index f49ad0b..f31fd1a 100755 (executable)
@@ -62,6 +62,10 @@ if __name__ == "__main__":
 
        print "Setting successful"
 
+       if (properties[property] == newvalue):
+               print "Setting was already set to this value"
+               sys.exit(1);
+
        canexit = True
 
        mainloop = gobject.MainLoop()