2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-31 10:06:39 +00:00

Merge pull request #7143 from gurevichmark/python3_openbmc

Python3 for openbmc-py RPM
This commit is contained in:
besawn 2022-04-13 10:35:53 -04:00 committed by GitHub
commit 480063c05e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
31 changed files with 54 additions and 38 deletions

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# -*- encoding: utf-8 -*-
from __future__ import print_function
import argparse

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# -*- encoding: utf-8 -*-
# just for test
from __future__ import print_function

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
class SelfServerException(Exception) :
def __init__(self, message, detail_msg= "", host_and_port="") :

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
###############################################################################
# IBM(c) 2018 EPL license http://www.eclipse.org/legal/epl-v10.html
###############################################################################

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
###############################################################################
# IBM(c) 2018 EPL license http://www.eclipse.org/legal/epl-v10.html
###############################################################################

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
###############################################################################
# IBM(c) 2018 EPL license http://www.eclipse.org/legal/epl-v10.html
###############################################################################

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
###############################################################################
# IBM(c) 2018 EPL license http://www.eclipse.org/legal/epl-v10.html
###############################################################################

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
###############################################################################
# IBM(c) 2018 EPL license http://www.eclipse.org/legal/epl-v10.html
###############################################################################

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
###############################################################################
# IBM(c) 2018 EPL license http://www.eclipse.org/legal/epl-v10.html
###############################################################################

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
###############################################################################
# IBM(c) 2018 EPL license http://www.eclipse.org/legal/epl-v10.html
###############################################################################

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
###############################################################################
# IBM(c) 2018 EPL license http://www.eclipse.org/legal/epl-v10.html
###############################################################################

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
###############################################################################
# IBM(c) 2018 EPL license http://www.eclipse.org/legal/epl-v10.html
###############################################################################

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
###############################################################################
# IBM(c) 2018 EPL license http://www.eclipse.org/legal/epl-v10.html
###############################################################################

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
###############################################################################
# IBM(c) 2018 EPL license http://www.eclipse.org/legal/epl-v10.html
###############################################################################

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
###############################################################################
# IBM(c) 2018 EPL license http://www.eclipse.org/legal/epl-v10.html
###############################################################################

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
###############################################################################
# IBM(c) 2018 EPL license http://www.eclipse.org/legal/epl-v10.html
###############################################################################

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
###############################################################################
# IBM(c) 2018 EPL license http://www.eclipse.org/legal/epl-v10.html
###############################################################################

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
###############################################################################
# IBM(c) 2018 EPL license http://www.eclipse.org/legal/epl-v10.html
###############################################################################

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
###############################################################################
# IBM(c) 2018 EPL license http://www.eclipse.org/legal/epl-v10.html
###############################################################################

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
###############################################################################
# IBM(c) 2018 EPL license http://www.eclipse.org/legal/epl-v10.html
###############################################################################

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
###############################################################################
# IBM(c) 2018 EPL license http://www.eclipse.org/legal/epl-v10.html
###############################################################################

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
###############################################################################
# IBM(c) 2018 EPL license http://www.eclipse.org/legal/epl-v10.html
###############################################################################

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
###############################################################################
# IBM(c) 2018 EPL license http://www.eclipse.org/legal/epl-v10.html
###############################################################################

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
###############################################################################
# IBM(c) 2018 EPL license http://www.eclipse.org/legal/epl-v10.html
###############################################################################

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
###############################################################################
# IBM(c) 2018 EPL license http://www.eclipse.org/legal/epl-v10.html
###############################################################################

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
###############################################################################
# IBM(c) 2018 EPL license http://www.eclipse.org/legal/epl-v10.html
###############################################################################

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
###############################################################################
# IBM(c) 2018 EPL license http://www.eclipse.org/legal/epl-v10.html
###############################################################################

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
###############################################################################
# IBM(c) 2018 EPL license http://www.eclipse.org/legal/epl-v10.html
###############################################################################

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
###############################################################################
# IBM(c) 2018 EPL license http://www.eclipse.org/legal/epl-v10.html
###############################################################################

View File

@ -18,10 +18,10 @@ AutoReqProv: no
BuildArch: noarch
Requires: xCAT-server
Requires: python-gevent >= 1.2.2-2
Requires: python-greenlet >= 0.4.13-2
Requires: python-paramiko >= 2.0.0
Requires: python2-docopt python-requests python-scp
Requires: python3-gevent
Requires: python3-greenlet
Requires: python3-paramiko
Requires: python3-docopt python3-requests python3-scp
%description
xCAT-openbmc-py provides openbmc related functions.

View File

@ -1,5 +1,5 @@
start:set_up_env_for_support_openbmc_in_python
description:this case is used to test environment setup for supporting openbmc in python
description:this case is used to test environment setup for supporting openbmc in python on RH7
label:others,hctrl_openbmc
os:Linux
hcp:openbmc,kvm
@ -30,15 +30,31 @@ cmd:sed -i "s|__REPLACE_PATH__EXTRAS__|$$PYTHON_DEP_EXTRAS_DIR|g" /etc/yum.repos
check:rc==0
cmd:sed -i "s|__REPLACE_PATH__FED__|$$PYTHON_DEP_FED_DIR|" /etc/yum.repos.d/xcat-dep-python-local.repo
check:rc==0
cmd: cat /etc/yum.repos.d/xcat-dep-python-local.repo
cmd:cat /etc/yum.repos.d/xcat-dep-python-local.repo
check:rc==0
cmd:wget https://xcat.org/files/xcat/xcat-dep/2.x_Linux/beta/xCAT-openbmc-py-RH7-2.14.6-snap202204090016.noarch.rpm -O /tmp/xCAT-openbmc-py-RH7.noarch.rpm
cmd:ls -l /tmp/xCAT-openbmc-py-RH7-2.14.6.rpm
check:rc==0
cmd:yum install -y xCAT-openbmc-py
cmd:yum install -y /tmp/xCAT-openbmc-py-RH7.noarch.rpm
check:rc==0
cmd:rpm -qa|grep "^xCAT-openbmc-py"
check:output=~ xCAT-openbmc-py-\d
cmd:rpm -qa|grep "^xCAT-openbmc-py-RH7"
check:output=~ xCAT-openbmc-py-RH7\d
check:rc==0
cmd:rm -rf /tmp/set_up_env_for_support_openbmc_in_python
check:rc==0
end
start:set_up_env_for_RH8_support_openbmc_in_python
description:this case is used to test environment setup for supporting openbmc in python on RH8
label:others,hctrl_openbmc
os:Linux
hcp:openbmc,kvm
cmd:yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
check:rc==0
cmd:yum install -y xCAT-openbmc-py
check:rc==0
cmd:rpm -qa|grep "^xCAT-openbmc-py"
check:output=~ xCAT-openbmc-py-\d
check:rc==0
end