Hi infra,
I have seen this failure today:
16:52:35 Triggered by Gerrit:
http://gerrit.ovirt.org/28610
16:52:35 Building remotely on dcaro-ovirt-vm02-fc20 (os1 fedora20) in workspace
/home/jenkins/workspace/vdsm_master_storage_functional_tests_localfs_gerrit
...
16:53:00 + sudo sh -c 'echo "" > /var/log/vdsm/vdsm.log'
16:53:00 sh: /var/log/vdsm/vdsm.log: No such file or directory
16:53:02 Build step 'Execute shell' marked build as failure
We need more robust code. Something like:
vdsm_log="/var/log/vdsm/vdsm.log"
if [ -f "$vdsm_log" ]; then
sudo sh -c 'echo "" > "$vdsm_log"
fi
Thanks,
Nir