tests: replace non-portable "date +%s" with ruby equivalent
authorEric Wong <normalperson@yhbt.net>
Mon, 4 Feb 2013 10:36:18 +0000 (10:36 +0000)
committerEric Wong <normalperson@yhbt.net>
Mon, 4 Feb 2013 10:36:18 +0000 (10:36 +0000)
commit85223902e8229bd460ce0b4ad126f42b1db42a46
tree3407b8227d44c24831cc2fc186773537780e5778
parenta09a622b4988b5eee819487c96a4563e71f753f7
tests: replace non-portable "date +%s" with ruby equivalent

"date +%s" is not in POSIX (it is in GNU, and at least FreeBSD
9.0, possibly earlier).  The Ruby equivalent should be
sufficiently portable between different Ruby versions.

This change was automated via:
    perl -i -p -e 's/date \+%s/unix_time/' t/*.sh

This is commit 0ba6fc3c30b9cf530faf7fcf5ce7be519ec13fe7
in rainbows.git
t/t0004-heartbeat-timeout.sh
t/test-lib.sh