From: davidplunkett Date: Fri, 21 Sep 2018 19:15:24 +0000 (+0000) Subject: make python output to unbuffered with -u X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=commitdiff_plain;h=f17267e201db172591ee6ebcafd3f5d52c9bf65d;p=redfish.git make python output to unbuffered with -u Change-Id: I01fd5f4ac0bf473ec659b4a5e94ff87b179f57e7 Signed-off-by: davidplunkett --- diff --git a/apply_dellxml.sh b/apply_dellxml.sh index a9ac87c..572ded2 100755 --- a/apply_dellxml.sh +++ b/apply_dellxml.sh @@ -143,7 +143,7 @@ if [ -z "$NO_APPLY_HW" ]; then ## PUSH HARDWARE CONFIG XML USING REDFISH - BYPASS PROXY FOR INTERNAL CONNECTION TO IDRAC echo "Applying server settings file [$BUILD_ROOT/$XMLFILE] to [$SRV_OOB_IP]" echo "This step could take up to 10 minutes" - HTTPS_PROXY= https_proxy= python "$DELL_ROOT/Redfish Python/ImportSystemConfigurationLocalFilenameREDFISH.py" \ + HTTPS_PROXY= https_proxy= python -u "$DELL_ROOT/Redfish Python/ImportSystemConfigurationLocalFilenameREDFISH.py" \ -ip $SRV_OOB_IP -u $SRV_OOB_USR -p $SRV_OOB_PWD -t ALL -f $BUILD_ROOT/$XMLFILE -s Forced 2>&1 | \ awk '{if (NF>0) {print $0; fflush();}} /FAIL/ {T=1;} END {exit $T;}' if [ "$?" -ne 0 ]; then diff --git a/apply_hpejson.sh b/apply_hpejson.sh index 1989f53..10bc8ec 100755 --- a/apply_hpejson.sh +++ b/apply_hpejson.sh @@ -143,7 +143,7 @@ if [ -z "$NO_APPLY_HW" ]; then ## PUSH HARDWARE CONFIG JSON USING REDFISH - BYPASS PROXY FOR INTERNAL CONNECTION TO IDRAC echo "Applying server settings file [$BUILD_ROOT/$JSONFILE] to [$SRV_OOB_IP]" echo "This step could take up to 10 minutes" - HTTPS_PROXY= https_proxy= PYTHONPATH=$HPE_ROOT/examples/Redfish/ python "$TOOLS_ROOT/set_hpe_config.py" \ + HTTPS_PROXY= https_proxy= PYTHONPATH=$HPE_ROOT/examples/Redfish/ python -u "$TOOLS_ROOT/set_hpe_config.py" \ -ip $SRV_OOB_IP -u $SRV_OOB_USR -p $SRV_OOB_PWD -f $BUILD_ROOT/$JSONFILE 2>&1 if [ "$?" -ne 0 ]; then echo "ERROR: failed applying server BIOS/RAID settings" diff --git a/get_dellnicmac.sh b/get_dellnicmac.sh index 1e3d8a4..314c982 100755 --- a/get_dellnicmac.sh +++ b/get_dellnicmac.sh @@ -78,7 +78,7 @@ if [ -z "$FQDD" ] ; then fi ## GET NIC SETTINGS USING REDFISH - BYPASS PROXY FOR INTERNAL CONNECTION TO IDRAC -NIC_DETAILS=$(HTTPS_PROXY= https_proxy= python "$DELL_ROOT/Redfish Python/GetEthernetInterfacesREDFISH.py" -ip $SRV_OOB_IP -u $SRV_OOB_USR -p $SRV_OOB_PWD -d $FQDD) +NIC_DETAILS=$(HTTPS_PROXY= https_proxy= python -u "$DELL_ROOT/Redfish Python/GetEthernetInterfacesREDFISH.py" -ip $SRV_OOB_IP -u $SRV_OOB_USR -p $SRV_OOB_PWD -d $FQDD) if [ "$?" -ne 0 ]; then echo "ERROR: failed to get nic settings" exit 1 diff --git a/setup_tools.sh b/setup_tools.sh index 1238ecf..55615b1 100755 --- a/setup_tools.sh +++ b/setup_tools.sh @@ -107,7 +107,7 @@ if [ ! -d "$HPE_ROOT" ]; then ## BUILD HPE TOOLS ( cd $HPE_ROOT - python setup.py sdist --formats=zip + python -u setup.py sdist --formats=zip pip install $HPE_ROOT/dist/python-ilorest-library-*.zip ) fi