1
0
mirror of https://github.com/systemd/systemd synced 2024-07-01 07:34:28 +00: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.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2024-05-30 11:33:20 +02:00
parent b00f44c3cf
commit 6bb3ea655d

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() {