diff options
author | Stefano Brivio <sbrivio@redhat.com> | 2022-09-20 21:56:49 +0200 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2022-09-22 16:54:09 +0200 |
commit | 119bb265a3c641f21d6c5f0b65037f654903ea57 (patch) | |
tree | 3d91ffdb53cb2d85666dc136caa5e18716a4ee28 /test | |
parent | 4a1b67527862c687f523470bda441a954d00a9af (diff) | |
download | passt-119bb265a3c641f21d6c5f0b65037f654903ea57.tar passt-119bb265a3c641f21d6c5f0b65037f654903ea57.tar.gz passt-119bb265a3c641f21d6c5f0b65037f654903ea57.tar.bz2 passt-119bb265a3c641f21d6c5f0b65037f654903ea57.tar.lz passt-119bb265a3c641f21d6c5f0b65037f654903ea57.tar.xz passt-119bb265a3c641f21d6c5f0b65037f654903ea57.tar.zst passt-119bb265a3c641f21d6c5f0b65037f654903ea57.zip |
test/lib: Restore IFS while executing directives in def blocks
If we don't, guest command dispatch will fail altogether, given that
we use cat(1) on the enter file, which contains spaces.
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'test')
-rwxr-xr-x | test/lib/test | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/lib/test b/test/lib/test index 3ad178f..a9ffe83 100755 --- a/test/lib/test +++ b/test/lib/test @@ -312,7 +312,7 @@ test_one_line() { IFS=' ' for __def_line in ${__def_body}; do - IFS= test_one_line "${__def_line}" + IFS="${__ifs}" test_one_line "${__def_line}" done IFS="${__ifs}" fi |