ttcn3: Don't overwrite output junit file on multiple testsuites
Change-Id: I803fa8766acb4e90c4a735a420b24ef18ef6b0c9
This commit is contained in:
parent
664e383021
commit
8ea4ba2e5a
|
@ -10,7 +10,7 @@ def run_ttcn3(tenv, testdir, bts, osmocon, nat_rsl_ip, ttcn3_test_execute, ttcn3
|
|||
bts_tmpl_file = os.path.join(testdir, 'scripts', 'BTS_Tests.cfg.tmpl')
|
||||
script_run_dir = tenv.test().get_run_dir().new_dir('ttcn3')
|
||||
bts_cfg_file = os.path.join(str(script_run_dir), 'BTS_Tests.cfg')
|
||||
junit_ttcn3_dst_file = os.path.join(str(tenv.suite().trial().get_run_dir()), 'trial-') + tenv.test().basename + '.xml'
|
||||
junit_ttcn3_dst_file = os.path.join(str(tenv.suite().trial().get_run_dir()), 'trial-' + tenv.suite().name() + '.' + tenv.test().module_name() + '.xml')
|
||||
if bts.bts_type() == 'osmo-bts-trx':
|
||||
pcu_available = True
|
||||
pcu_sk = bts.pcu_socket_path()
|
||||
|
|
|
@ -88,6 +88,6 @@ network_remove
|
|||
|
||||
echo "Copying TTCN3 junit file to $JUNIT_TTCN3_DST_FILE"
|
||||
cp $VOL_BASE_DIR/bts-tester/junit-xml-*.log $JUNIT_TTCN3_DST_FILE
|
||||
sed -i "s#classname='BTS_Tests'#classname='$(basename $JUNIT_TTCN3_DST_FILE)'#g" $JUNIT_TTCN3_DST_FILE
|
||||
sed -i "s#classname='BTS_Tests'#classname='$(basename $JUNIT_TTCN3_DST_FILE '.xml')'#g" $JUNIT_TTCN3_DST_FILE
|
||||
|
||||
exit $child_exit_code
|
||||
|
|
Loading…
Reference in New Issue