Looks good to me, just looks like a testing command got left behind. Otherwise though:
Reviewed-by: Jeremy Spewock <jspew...@iol.unh.edu> On Thu, Jun 13, 2024 at 4:22 PM Nicholas Pratte <npra...@iol.unh.edu> wrote: > > The 'arch' attribute in the conf.yaml is unnecessary, as this can be > readily discovered within the constructor of any given node. Since OS is > determined within user configuration, finding system arch can be done > both reliably and easily within the framework. > > For Linux/Posix systems, the 'uname' command is used to determine system > architecture. I believe that this is posix-standard and utilizes a > standardized output. > > Bugzilla ID: 1360 > Signed-off-by: Nicholas Pratte <npra...@iol.unh.edu> > > --- <snip> > diff --git a/dts/framework/testbed_model/posix_session.py > b/dts/framework/testbed_model/posix_session.py > index d279bb8b53..91afca61ea 100644 > --- a/dts/framework/testbed_model/posix_session.py > +++ b/dts/framework/testbed_model/posix_session.py > @@ -295,3 +295,9 @@ def get_node_info(self) -> NodeInfo: > ).stdout.split("\n") > kernel_version = self.send_command("uname -r", > SETTINGS.timeout).stdout > return NodeInfo(os_release_info[0].strip(), > os_release_info[1].strip(), kernel_version) > + > + def get_arch_info(self) -> str: > + """Overrides :meth'~.os_session.OSSession.get_arch_info'.""" > + # return str(self.send_command('arch')).stdout Right here is the testing I was referencing. > + > + return str(self.send_command("uname -m").stdout.removesuffix("\n")) > -- > 2.44.0 >