Gitlab CI: minor fixes
This commit is contained in:
@@ -29,10 +29,7 @@
|
|||||||
|
|
||||||
# *******************************************************************************/
|
# *******************************************************************************/
|
||||||
|
|
||||||
# \file test01.py
|
# \author Rohit Gupta
|
||||||
# \brief test 01 for OAI
|
|
||||||
# \author Navid Nikaein
|
|
||||||
# \date 2013 - 2015
|
|
||||||
# \version 0.1
|
# \version 0.1
|
||||||
# @ingroup _test
|
# @ingroup _test
|
||||||
|
|
||||||
@@ -1529,9 +1526,8 @@ for testcase in testcaseList:
|
|||||||
print "Now copying files to NFS Share"
|
print "Now copying files to NFS Share"
|
||||||
oai_localhost = openair('localdomain','localhost')
|
oai_localhost = openair('localdomain','localhost')
|
||||||
oai_localhost.connect(user,pw)
|
oai_localhost.connect(user,pw)
|
||||||
cmd = ' rm -fr ' + NFSTestsResultsDir + ' ; mkdir -p ' + NFSTestsResultsDir
|
cmd = ' mkdir -p ' + NFSTestsResultsDir
|
||||||
res = oai_localhost.send_recv(cmd)
|
res = oai_localhost.send_recv(cmd)
|
||||||
print "Deleting NFSTestResults Dir..." + res
|
|
||||||
|
|
||||||
print "Copying files from GilabCI Runner Machine : " + host + " .locallogdir = " + locallogdir + ", NFSTestsResultsDir = " + NFSTestsResultsDir
|
print "Copying files from GilabCI Runner Machine : " + host + " .locallogdir = " + locallogdir + ", NFSTestsResultsDir = " + NFSTestsResultsDir
|
||||||
SSHSessionWrapper('localhost', user, None, pw , NFSTestsResultsDir , locallogdir, "put_all")
|
SSHSessionWrapper('localhost', user, None, pw , NFSTestsResultsDir , locallogdir, "put_all")
|
||||||
@@ -1568,12 +1564,15 @@ res=os.system(cmd)
|
|||||||
print "Now copying files to NFS Share"
|
print "Now copying files to NFS Share"
|
||||||
oai_localhost = openair('localdomain','localhost')
|
oai_localhost = openair('localdomain','localhost')
|
||||||
oai_localhost.connect(user,pw)
|
oai_localhost.connect(user,pw)
|
||||||
cmd = ' rm -fr ' + NFSTestsResultsDir + ' ; mkdir -p ' + NFSTestsResultsDir
|
cmd = 'mkdir -p ' + NFSTestsResultsDir
|
||||||
res = oai_localhost.send_recv(cmd)
|
res = oai_localhost.send_recv(cmd)
|
||||||
print "Deleting NFSTestResults Dir..." + res
|
|
||||||
|
|
||||||
print "Copying files from GilabCI Runner Machine : " + host + " .locallogdir = " + locallogdir + ", NFSTestsResultsDir = " + NFSTestsResultsDir
|
print "Copying files from GilabCI Runner Machine : " + host + " .locallogdir = " + locallogdir + ", NFSTestsResultsDir = " + NFSTestsResultsDir
|
||||||
SSHSessionWrapper('localhost', user, None, pw , NFSTestsResultsDir , locallogdir, "put_all")
|
SSHSessionWrapper('localhost', user, None, pw , NFSTestsResultsDir , locallogdir, "put_all")
|
||||||
|
|
||||||
|
cmd = "cat " + NFSTestsResultsDir + "/log/*/*.xml > " + NFSTestsResultsDir + "/log/results_autotests.xml"
|
||||||
|
res = oai_localhost.send_recv(cmd)
|
||||||
|
|
||||||
oai_localhost.disconnect()
|
oai_localhost.disconnect()
|
||||||
|
|
||||||
sys.exit()
|
sys.exit()
|
||||||
|
|||||||
Reference in New Issue
Block a user