graphics_MultipleDisplays: Fix missing directory
This change makes sure that the DUT directory structure exists before
transferring webroot contents. When testing recently
/usr/local/autotest/tests/graphics_MultipleDisplays was not present
resulting in the following failure.
autoserv.DEBUG:
* Command:
rsync -L --delete --timeout=1800 --rsh='/usr/bin/ssh -a -x -o
ControlPath=/tmp/_autotmp_z_HSN3ssh-master/socket -o Protocol=2
-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o
BatchMode=yes -o ConnectTimeout=30 -o ServerAliveInterval=900 -o
ServerAliveCountMax=3 -o ConnectionAttempts=4 -l root -p 22' -az
--no-o --no-g "/tmp/autoserv-YtE7M2/" "[email protected]:"/usr/
local/autotest/tests/graphics_MultipleDisplays/webroot""
Exit status: 11
Duration: 0.0263850688934
stderr:
rsync: mkdir "/usr/local/autotest/tests/graphics_MultipleDisplays/
webroot" failed: No such file or directory (2)
BUG=None
TEST=Execute autotests. First connect USB-C to HDMI/DP adapter and
associated Chameleon hardware.
`test_that --board=${BOARD} \
--args="chameleon_host=${CHAMELIUM_IP}" \
${DUT_IP} e:graphics_MultipleDisplays.*`
Change-Id: If21641c81420772e928179e9c6e07d281952d5db
Signed-off-by: Edward Baker <[email protected]>
Reviewed-on: https://chromium-review.googlesource.com/c/1461246
Reviewed-by: Ilja H. Friedel <[email protected]>
Tested-by: Ilja H. Friedel <[email protected]>
diff --git a/server/site_tests/graphics_MultipleDisplays/graphics_MultipleDisplays.py b/server/site_tests/graphics_MultipleDisplays/graphics_MultipleDisplays.py
index 8d8632b..21a4d58 100644
--- a/server/site_tests/graphics_MultipleDisplays/graphics_MultipleDisplays.py
+++ b/server/site_tests/graphics_MultipleDisplays/graphics_MultipleDisplays.py
@@ -88,6 +88,7 @@
tar.extractall(temp_bundle_dir)
# Send bundle to client. The extra slash is to send directory contents.
+ self._host.run('mkdir -p {}'.format(self.CLIENT_TEST_ROOT))
self._host.send_file(temp_bundle_dir + '/', self.CLIENT_TEST_ROOT,
delete_dest=True)