Skip to content

Commit 7ddf8ee

Browse files
committed
tests: fixes for time_stamp module
1 parent b6ce030 commit 7ddf8ee

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

tests/time_stamp.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,14 @@ def test_start_time_format(self):
4949
show_backup = show_backup + self.show_pb(backup_dir, 'node')
5050
i += 1
5151

52+
print(show_backup[1]['id'])
53+
print(show_backup[2]['id'])
54+
5255
self.assertTrue(show_backup[1]['id'] == show_backup[2]['id'], "ERROR: Localtime format using instead of UTC")
5356

57+
output = self.show_pb(backup_dir, as_json=False, as_text=True)
58+
self.assertNotIn("backup ID in control file", output)
59+
5460
node.stop()
5561
# Clean after yourself
5662
self.del_test_dir(module_name, fname)
@@ -92,7 +98,7 @@ def test_dst_timezone_handling(self):
9298
node.slow_start()
9399

94100
print(subprocess.Popen(
95-
['sudo', 'timedatectl', 'set-timezone', 'US/Detroit'],
101+
['sudo', 'timedatectl', 'set-timezone', 'America/Detroit'],
96102
stdout=subprocess.PIPE,
97103
stderr=subprocess.PIPE).communicate())
98104

@@ -168,7 +174,7 @@ def test_dst_timezone_handling_backward_compatibilty(self):
168174
node.slow_start()
169175

170176
subprocess.Popen(
171-
['sudo', 'timedatectl', 'set-timezone', 'US/Detroit'],
177+
['sudo', 'timedatectl', 'set-timezone', 'America/Detroit'],
172178
stdout=subprocess.PIPE,
173179
stderr=subprocess.PIPE).communicate()
174180

0 commit comments

Comments
 (0)