avocado-framework / avocado-vt

Avocado VT Plugin
https://avocado-vt.readthedocs.org/
Other
84 stars 243 forks source link

Fix no directory issue #4007

Closed cliping closed 1 month ago

cliping commented 1 month ago

When the directory is not exist, process.getoutput may return empty, which will cause the directory creation step to be skipped. So update code.

cliping commented 1 month ago

Before: Failed to run: ssh root@10.73.212.20 -o StrictHostKeyChecking=no 'mount -t nfs 10.73.212.26:/var/lib/avocado/data/avocado-vt/images /var/lib/libvirt/migrate -o rw'

After: (1/1) type_specific.io-github-autotest-libvirt.virsh.migrate_options_shared.positive_test.set_get_maxdowntime_during_migrate.with_postcopy: PASS (146.20 s)