> 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: [email protected] <[email protected]> On Behalf Of Dai, Wei
Sent: Friday, 2018-July-20 10:58
To: [email protected]; [email protected]
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 (#9911): https://lists.fd.io/g/vpp-dev/message/9911
Mute This Topic: https://lists.fd.io/mt/23792742/21656
Group Owner: [email protected]
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
  • ... Dai, Wei
    • ... Vratko Polak -X (vrpolak - PANTHEON TECHNOLOGIES at Cisco) via Lists.Fd.Io

Reply via email to