virnetsockettest: Improve indentation

Having the actual script indented and the closing quote on a
separate line, like

  sh -c '
    if foo; then
      bar;
    fi
  '

makes things more readable and easier to scan visually.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
Andrea Bolognani 2022-02-09 19:54:34 +01:00
parent a280b9282f
commit 709d190a82

View File

@ -575,7 +575,8 @@ mymain(void)
"else "
"ARG=;"
"fi;"
"'nc' $ARG -U /tmp/socket'\n",
"'nc' $ARG -U /tmp/socket"
"'\n",
};
if (virTestRun("SSH test 1", testSocketSSH, &sshData1) < 0)
ret = -1;
@ -594,7 +595,8 @@ mymain(void)
"else "
"ARG=;"
"fi;"
"'netcat' $ARG -U /tmp/socket'\n",
"'netcat' $ARG -U /tmp/socket"
"'\n",
};
if (virTestRun("SSH test 2", testSocketSSH, &sshData2) < 0)
ret = -1;
@ -613,7 +615,8 @@ mymain(void)
"else "
"ARG=;"
"fi;"
"'netcat' $ARG -U /tmp/socket'\n",
"'netcat' $ARG -U /tmp/socket"
"'\n",
};
if (virTestRun("SSH test 3", testSocketSSH, &sshData3) < 0)
ret = -1;
@ -636,7 +639,8 @@ mymain(void)
"else "
"ARG=;"
"fi;"
"'nc' $ARG -U /tmp/socket'\n",
"'nc' $ARG -U /tmp/socket"
"'\n",
.dieEarly = true,
};
if (virTestRun("SSH test 5", testSocketSSH, &sshData5) < 0)
@ -654,7 +658,8 @@ mymain(void)
"else "
"ARG=;"
"fi;"
"'nc' $ARG -U /tmp/socket'\n",
"'nc' $ARG -U /tmp/socket"
"'\n",
};
if (virTestRun("SSH test 6", testSocketSSH, &sshData6) < 0)
ret = -1;
@ -669,7 +674,8 @@ mymain(void)
"else "
"ARG=;"
"fi;"
"'''\\''/tmp/fo o/nc'\\'''' $ARG -U /tmp/socket'\n",
"'''\\''/tmp/fo o/nc'\\'''' $ARG -U /tmp/socket"
"'\n",
};
VIR_WARNINGS_RESET
if (virTestRun("SSH test 7", testSocketSSH, &sshData7) < 0)