chiark
/
gitweb
/
~mdw
/
disorder
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Command line interface now takes more human-friendly timestamps. This
[disorder]
/
tests
/
schedule.py
diff --git
a/tests/schedule.py
b/tests/schedule.py
index ae6623ca85037a186bc0ae03b8774c24348f8750..a3feaa87683fa06d9562bc79290e7496faeedf92 100755
(executable)
--- a/
tests/schedule.py
+++ b/
tests/schedule.py
@@
-82,7
+82,8
@@
def test():
"--config", disorder._configfile,
"--no-per-user-config",
"schedule-play",
"--config", disorder._configfile,
"--no-per-user-config",
"schedule-play",
- str(now + 4),
+ time.strftime("%Y-%m-%d %H:%M:%S",
+ time.localtime(now + 4)),
"normal",
track])
print " disorder schedule-list output:"
"normal",
track])
print " disorder schedule-list output:"
@@
-110,7
+111,8
@@
def test():
"--config", disorder._configfile,
"--no-per-user-config",
"schedule-set-global",
"--config", disorder._configfile,
"--no-per-user-config",
"schedule-set-global",
- str(now + 4),
+ time.strftime("%Y-%m-%d %H:%M:%S",
+ time.localtime(now + 4)),
"normal",
"random-play",
"yes"])
"normal",
"random-play",
"yes"])