diff options
author | Patrick Ohly <patrick.ohly@intel.com> | 2013-04-02 08:13:03 -0700 |
---|---|---|
committer | Patrick Ohly <patrick.ohly@intel.com> | 2013-05-06 16:28:12 +0200 |
commit | f640ee89b2d51ac0d3fa46de672e929d293443e9 (patch) | |
tree | 358722fd8984550f28e401478c8410e1c8b38bcd | |
parent | 89970c04c1e0a43c7160c817e0f569fd5426df6c (diff) |
D-Bus testing: set locale in some more tests
Run some more tests with the right locale. The tests check for
a localized error message ("The connection is closed").
-rwxr-xr-x | test/test-dbus.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/test-dbus.py b/test/test-dbus.py index c8aecd11..2288a808 100755 --- a/test/test-dbus.py +++ b/test/test-dbus.py @@ -4044,6 +4044,7 @@ END:VCARD''') self.assertEqual(report["source-addressbook-status"], "0") # unknown status for source (aborted early) @timeout(200) + @property("ENV", "LC_ALL=en_US.UTF-8 LANGUAGE=en_US") def testParentFailure(self): """TestLocalSync.testParentFailure - check that server and local sync helper detect when D-Bus helper dies""" self.setUpConfigs(childPassword="-") @@ -4113,6 +4114,7 @@ END:VCARD''') 'sync parent quit unexpectedly')) @timeout(200) + @property("ENV", "LC_ALL=en_US.UTF-8 LANGUAGE=en_US") def testChildFailure(self): """TestLocalSync.testChildFailure - check that server and D-Bus sync helper detect when local sync helper dies""" self.setUpConfigs(childPassword="-") @@ -7757,7 +7759,7 @@ END:VCARD @property("debug", False) - @property("ENV", "SYNCEVOLUTION_SYNC_DELAY=60") + @property("ENV", "SYNCEVOLUTION_SYNC_DELAY=60 LC_ALL=en_US.UTF-8 LANGUAGE=en_US") @timeout(200) def testSyncFailure1(self): """TestCmdline.testSyncFailure1 - check that cmdline notices when sync fails prematurely before it even starts""" @@ -7806,7 +7808,7 @@ END:VCARD ''' in out) @property("debug", False) - @property("ENV", "SYNCEVOLUTION_LOCAL_CHILD_DELAY2=60") + @property("ENV", "SYNCEVOLUTION_LOCAL_CHILD_DELAY2=60 LC_ALL=en_US.UTF-8 LANGUAGE=en_US") @timeout(200) def testSyncFailure2(self): """TestCmdline.testSyncFailure2 - check that cmdline notices when sync fails prematurely in the middle""" |