autotest/virt-test — pull request #1251 by Hao-Liu (2013-12-17 02:39:35+00:00)
Title: libvirt: Fix memtune cgroup bug

This PR depends on #1248

The original code use 'cat' to get the content of a cgroup file. This
will cause problem if the file name contains slash '\' in it. This
fix change it by using 'open' to read.

BTW, This commit also merged some repeat helper functions.

Signed-off-by: Hao Liu