diff --git a/.github/workflows/xcat_test.yml b/.github/workflows/xcat_test.yml index 0c151ae90..573ec75fa 100644 --- a/.github/workflows/xcat_test.yml +++ b/.github/workflows/xcat_test.yml @@ -8,4 +8,5 @@ jobs: - uses: actions/checkout@v3 - run: sudo apt-get install -y fakeroot reprepro devscripts debhelper libcapture-tiny-perl libjson-perl libsoap-lite-perl libdbi-perl libcgi-pm-perl quilt openssh-server dpkg looptools genometools software-properties-common - run: echo "$GITHUB_WORKSPACE/opt/xcat/bin:$GITHUB_WORKSPACE/opt/xcat/sbin" >> $GITHUB_PATH + - run: echo "/opt/xcat/bin:/opt/xcat/sbin" >> $GITHUB_PATH - run: perl github_action_xcat_test.pl diff --git a/github_action_xcat_test.pl b/github_action_xcat_test.pl index ce185015a..22b2589c0 100644 --- a/github_action_xcat_test.pl +++ b/github_action_xcat_test.pl @@ -344,17 +344,17 @@ sub install_xcat{ print "\n------Config xcat and verify xcat is working correctly-----\n"; @cmds = ("sudo -s /opt/xcat/share/xcat/scripts/setup-local-client.sh -f githubaction", "sudo -s /opt/xcat/sbin/chtab priority=1.1 policy.name=githubaction policy.rule=allow", - "sudo sed -i '1i set -x' /etc/profile.d/xcat.sh ", - "sudo sed -i '1i #!/bin/bash' /etc/profile.d/xcat.sh ", - "cat /etc/profile.d/xcat.sh", + #"sudo sed -i '1i set -x' /etc/profile.d/xcat.sh ", + #"sudo sed -i '1i #!/bin/bash' /etc/profile.d/xcat.sh ", + #"cat /etc/profile.d/xcat.sh", + #"echo \$PATH", + #"/etc/profile.d/xcat.sh && export PATH", + #"echo \$PATH", + #"export PATH=/opt/xcat/bin:/opt/xcat/sbin/:\$PATH", "echo \$PATH", - "/etc/profile.d/xcat.sh && export PATH", - "echo \$PATH", - "export PATH=/opt/xcat/bin:/opt/xcat/sbin/:\$PATH", - "echo \$PATH", - "sudo tabdump policy", + "tabdump policy", "sudo tabdump site", - "sudo lsxcatd -a", + "lsxcatd -a", "ls /opt/xcat/sbin", "sudo service xcatd status"); my $ret = 0;