Hi, Vratko Polak Thanks for your feedback and guidance. I will check it later if I have free time. Now I have just made a workaround to use /usr/sbin/lspci instead of lspci in the .py script. It works well for me.
> -----Original Message----- > From: csit-...@lists.fd.io [mailto:csit-...@lists.fd.io] On Behalf Of Vratko > Polak -X (vrpolak - PANTHEON TECHNOLOGIES at Cisco) via Lists.Fd.Io > Sent: Monday, July 23, 2018 9:19 PM > To: Dai, Wei <wei....@intel.com>; csit-...@lists.fd.io; vpp-dev@lists.fd.io > Cc: csit-...@lists.fd.io > Subject: Re: [csit-dev] The environment variable PATH is changed after > "Setup Framework" > > > I wonder why the PATH is changed in CSIT. > > I do not think CSIT is changing the PATH. > I think you see diferent values, > because you are logging in in an different way. > > See the technical summary [0] from bash documentation, or somewhat > older and more colourful page [1]. > > [0] > https://www.gnu.org/software/bash/manual/html_node/Bash-Startup-Files > .html > [1] https://mywiki.wooledge.org/DotFiles > > -----Original Message----- > From: csit-...@lists.fd.io <csit-...@lists.fd.io> On Behalf Of Dai, Wei > Sent: Friday, 2018-July-20 10:58 > To: csit-...@lists.fd.io; vpp-dev@lists.fd.io > Subject: [csit-dev] The environment variable PATH is changed after "Setup > Framework" > > Hi, All > > When I run "pybot -L TRACE -v > TOPOLOGY_PATH:topologies/available/my-csit.yaml -s > eth2p-eth-l2xcbase-func tests" > It failed due to "not found lspci on TG". > I add the code : return_code, _, _ = ssh.exec_command('echo $PATH') just > before cmd = "[[ -f /etc/redhat-release ]]" > in the function install_vpp_on_all_duts in DUTSetup.py. > > From the test log.html, I find the PATH is changed > 16:46:20.814 TRACE exec_command on ('172.16.182.75', 22): echo > $PATH > 16:46:20.989 TRACE exec_command on ('172.16.182.75', 22) took > 0.173923015594 seconds > 16:46:20.989 TRACE return RC 0 > 16:46:20.989 TRACE return STDOUT > /usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/bin > > 16:46:20.989 TRACE return STDERR > > After the test finished, I manually login the DUT(172.16.182.75) and run > "echo $PATH", it shows: > [csit@dut1 ~]$ echo $PATH > /usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home > /csit/.local/bin:/home/csit/bin > > I wonder why the PATH is changed in CSIT. > What is wrong with my CSIT test bed ? > > Thanks a lot ! > > >
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#9923): https://lists.fd.io/g/vpp-dev/message/9923 Mute This Topic: https://lists.fd.io/mt/23792742/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-