]> xenbits.xensource.com Git - osstest.git/commit
target_editfile: Use the same user to retrieve and send
authorAnthony PERARD <anthony.perard@citrix.com>
Tue, 24 Oct 2023 10:51:06 +0000 (11:51 +0100)
committerAnthony PERARD <anthony.perard@citrix.com>
Thu, 28 Mar 2024 16:51:52 +0000 (16:51 +0000)
commit3ea0b800b909eb77dad1890166b686d7aae9503e
tree6c675bc3ccccec4759f0795745e45aaecd031ab0
parenta7851faeb1523f83f1b063987aa2667cc33e6463
target_editfile: Use the same user to retrieve and send

The file "/boot/grub/grub.cfg" on Debian Bookworm isn't accessible
from the "osstest" user, but target_editfile_root() tries to grab the
file as "osstest" then edit it as "root.

Change teditfileex() to use the same $user also to get the file. This
will fix ts-examine-serial-pre step.

Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Acked-by: Roger Pau Monné <roger.pau@citrix.com>
Osstest/TestSupport.pm