minor bugfix for paramiko logfile
This commit is contained in:
@@ -1016,9 +1016,7 @@ except KeyError:
|
|||||||
print "Please set the environment variable OPENAIR_TARGETS in the .bashrc"
|
print "Please set the environment variable OPENAIR_TARGETS in the .bashrc"
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
paramiko_logfile = os.path.expandvars('$OPENAIR_DIR/cmake_targets/autotests/log/paramiko.log')
|
|
||||||
res=os.system(' echo > ' + paramiko_logfile)
|
|
||||||
paramiko.util.log_to_file(paramiko_logfile)
|
|
||||||
|
|
||||||
# get the oai object
|
# get the oai object
|
||||||
host = os.uname()[1]
|
host = os.uname()[1]
|
||||||
@@ -1045,6 +1043,10 @@ if flag_remove_logdir == True:
|
|||||||
print "Removing directory: " + locallogdir
|
print "Removing directory: " + locallogdir
|
||||||
os.system(' rm -fr ' + locallogdir + '; mkdir -p ' + locallogdir )
|
os.system(' rm -fr ' + locallogdir + '; mkdir -p ' + locallogdir )
|
||||||
|
|
||||||
|
paramiko_logfile = os.path.expandvars('$OPENAIR_DIR/cmake_targets/autotests/log/paramiko.log')
|
||||||
|
res=os.system(' echo > ' + paramiko_logfile)
|
||||||
|
paramiko.util.log_to_file(paramiko_logfile)
|
||||||
|
|
||||||
#pw=getpass.getpass()
|
#pw=getpass.getpass()
|
||||||
|
|
||||||
#Now we parse the xml file for basic configuration
|
#Now we parse the xml file for basic configuration
|
||||||
|
|||||||
Reference in New Issue
Block a user