]> git.proxmox.com Git - mirror_lxcfs.git/commitdiff
tests: fix invalid comparison
authorChristian Brauner <christian.brauner@ubuntu.com>
Mon, 12 Jun 2017 13:47:13 +0000 (15:47 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Mon, 12 Jun 2017 13:47:13 +0000 (15:47 +0200)
We now follow the host's /proc/uptime in that we report two digits after the dot
too. Adapt the tests too.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
tests/test_proc

index a965a68a27bf864f6d75652d4b7af302340da970..1ba1a149716f0088a47e1aead7caa6db1ac24a21 100755 (executable)
@@ -36,7 +36,7 @@ echo $((64*1024*1024)) > ${mempath}/lxcfs_test_proc/memory.limit_in_bytes
 echo 0 > ${cpupath}/lxcfs_test_proc/cpuset.cpus
 
 # Test uptime
-[ "$(cat ${LXCFSDIR}/proc/uptime)" = "0.0 0.0" ]
+[ "$(cat ${LXCFSDIR}/proc/uptime)" = "0.00 0.00" ]
 
 # Test cpuinfo
 [ "$(grep "^processor" ${LXCFSDIR}/proc/cpuinfo | wc -l)" = "1" ]