[libvirt] [PATCH 2/2] qemuxml2argvtest: Set timezone

2014-02-06 Thread Michal Privoznik
With my recent work on the test, both time() and localtime() are used. While mocking the former one, we get predictible result for UTC. But since the latter function uses timezone to get local time, the result of localtime() is not so predictive. Therefore, we must set the TZ variable at the

Re: [libvirt] [PATCH 2/2] qemuxml2argvtest: Set timezone

2014-02-06 Thread Eric Blake
On 02/06/2014 06:33 AM, Michal Privoznik wrote: With my recent work on the test, both time() and localtime() are used. While mocking the former one, we get predictible result for UTC. But s/predictible/predictable/ since the latter function uses timezone to get local time, the result of