1
0
mirror of https://github.com/systemd/systemd.git synced 2025-03-22 06:50:18 +03:00

TEST-58-REPART: reverse order of diff args

I expect the test output to be the second argument, so we're diffing "expected"
and "output", not the other way around.

I noticed this when working on https://github.com/systemd/systemd/pull/33081.

(cherry picked from commit 6bb3ea655d08c0602c99ccd2a580ba102fd19114)
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2024-05-30 11:33:20 +02:00 committed by Luca Boccassi
parent 2f455914f7
commit 9663bb7410

View File

@ -423,7 +423,7 @@ EOF
--json=pretty \
"$imgs/zzz")
diff -u <(echo "$output") - <<EOF
diff -u - <<EOF <(echo "$output")
[
{
"type" : "swap",
@ -484,7 +484,7 @@ EOF
--json=pretty \
"$imgs/zzz")
diff -u <(echo "$output") - <<EOF
diff -u - <<EOF <(echo "$output")
[
{
"type" : "swap",
@ -1198,7 +1198,8 @@ EOF
--json=pretty \
"$imgs/zzz")
diff -u <(echo "$output1" | grep -E "(offset|raw_size|raw_padding)") <(echo "$output2" | grep -E "(offset|raw_size|raw_padding)")
diff -u <(echo "$output1" | grep -E "(offset|raw_size|raw_padding)") \
<(echo "$output2" | grep -E "(offset|raw_size|raw_padding)")
}
test_sector() {