make python output to unbuffered with -u 59/259/1
authordavidplunkett <dp7642@att.com>
Fri, 21 Sep 2018 19:15:24 +0000 (19:15 +0000)
committerdavidplunkett <dp7642@att.com>
Fri, 21 Sep 2018 19:15:24 +0000 (19:15 +0000)
Change-Id: I01fd5f4ac0bf473ec659b4a5e94ff87b179f57e7
Signed-off-by: davidplunkett <dp7642@att.com>
apply_dellxml.sh
apply_hpejson.sh
get_dellnicmac.sh
setup_tools.sh

index a9ac87c..572ded2 100755 (executable)
@@ -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
index 1989f53..10bc8ec 100755 (executable)
@@ -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"
index 1e3d8a4..314c982 100755 (executable)
@@ -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
index 1238ecf..55615b1 100755 (executable)
@@ -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