Browse Source

tests: Fix overlay_overlay_nosugar test case

This test was accidentally skipped as the wrong test dts file was built.
The fragment numbering in this sugar-free test case needed adjusting to
match the numbering generated by dtc for overlay_overlay.dts.

Signed-off-by: Paul Barker <pbarker@konsulko.com>
Message-Id: <20201219143521.2118-1-pbarker@konsulko.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
main
Paul Barker 4 years ago committed by David Gibson
parent
commit
f7e5737f26
  1. 8
      tests/overlay_overlay_nosugar.dts
  2. 2
      tests/run_tests.sh

8
tests/overlay_overlay_nosugar.dts

@ -48,7 +48,7 @@ @@ -48,7 +48,7 @@
};
};

fragment@5 {
fragment@4 {
target = <&test>;

__overlay__ {
@ -58,7 +58,7 @@ @@ -58,7 +58,7 @@
};
};

fragment@6 {
fragment@5 {
target = <&test>;

__overlay__ {
@ -66,7 +66,7 @@ @@ -66,7 +66,7 @@
};
};

fragment@7 {
fragment@6 {
target = <&test>;

__overlay__ {
@ -74,7 +74,7 @@ @@ -74,7 +74,7 @@
};
};

fragment@8 {
fragment@7 {
target = <&test>;

__overlay__ {

2
tests/run_tests.sh

@ -288,7 +288,7 @@ dtc_overlay_tests () { @@ -288,7 +288,7 @@ dtc_overlay_tests () {
run_test check_path overlay_overlay.test.dtb exists "/__local_fixups__"

# Without syntactic sugar
run_dtc_test -I dts -O dtb -o overlay_overlay_nosugar.test.dtb "$SRCDIR/overlay_overlay.dts"
run_dtc_test -I dts -O dtb -o overlay_overlay_nosugar.test.dtb "$SRCDIR/overlay_overlay_nosugar.dts"
run_test check_path overlay_overlay_nosugar.test.dtb not-exists "/__symbols__"
run_test check_path overlay_overlay_nosugar.test.dtb exists "/__fixups__"
run_test check_path overlay_overlay_nosugar.test.dtb exists "/__local_fixups__"

Loading…
Cancel
Save