Re: [PATCH] tests: compare the DTS generated from the tree against a model one

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Mon, Oct 08, 2018 at 10:16:15AM -0500, Rob Herring wrote:
> On Sun, Oct 7, 2018 at 10:56 PM David Gibson
> <david@xxxxxxxxxxxxxxxxxxxxx> wrote:
> >
> > On Sun, Oct 07, 2018 at 04:46:13PM +0200, Lubomir Rintel wrote:
> > > This would catch the cases, where the output DTS still parses well and
> > > produces a tree that we expect, yet it contains some weirdness.
> >
> > I'm really not sure what sort of thing you're trying to catch with
> > this.  The problem is that exactly how we format the dts is
> > necessarily a heuristic - if we adjust or improve how we guess the
> > formatting for dts output the output *will* change, but it won't be
> > incorrect.
> 
> Yes, but we've obviously had regressions here because the dts varies
> now based on the input source. It's not just checking for correctness,
> but unintentional changes. If what we intend for dts output changes,
> then the test data should too.

Hm, alright, you convinced me.

Can you resend this patch please, it looks like that test data will
already need to be updated for the fix from Rob I just applied.

-- 
David Gibson			| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au	| minimalist, thank you.  NOT _the_ _other_
				| _way_ _around_!
http://www.ozlabs.org/~dgibson

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Device Tree]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux