1) Fixed API test cases for Utilities.

2) Try to fix Jenkins build for __pycache__.
This commit is contained in:
Khushboo Vashi 2022-02-14 17:26:27 +05:30 committed by Akshay Joshi
parent 1cdbb9a643
commit 0fa4609220
3 changed files with 7 additions and 1 deletions

View File

@ -10,6 +10,9 @@ OS_VERSION=$(cat /etc/os-release | grep "^VERSION_ID=" | awk -F "=" '{ print $2
OS_NAME=$(cat /etc/os-release | grep "^ID=" | awk -F "=" '{ print $2 }' | sed 's/"//g')
OS_ARCH=$(dpkg-architecture -qDEB_HOST_ARCH)
# Stop creating pyc files.
export PYTHONDONTWRITEBYTECODE=1
# Common Linux build functions
source pkg/linux/build-functions.sh

View File

@ -13,6 +13,9 @@ OS_ARCH=$(arch)
# Make sure we get the right libpq
export PATH=/usr/pgsql-14/bin:$PATH
# Stop creating pyc files.
export PYTHONDONTWRITEBYTECODE=1
# Common Linux build functions
source pkg/linux/build-functions.sh

View File

@ -528,7 +528,7 @@ class BatchProcess(object):
cloud_instance['instance']['sid'] = _process.server_id
cloud_instance['instance']['status'] = False
return update_server(cloud_instance)
return False, None
return True, {}
def status(self, out=0, err=0):
ctime = get_current_time(format='%y%m%d%H%M%S%f')