Commit 3c455f7d authored by Rohit Gupta's avatar Rohit Gupta

minor bugfix for paramiko logfile

parent 38ca126c
...@@ -1016,9 +1016,7 @@ except KeyError: ...@@ -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: ...@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment