osmith has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/40309?usp=email )
Change subject: testenv: cfg: check for multiple spaces in lists
......................................................................
testenv: cfg: check for multiple spaces in lists
Pau ran into an unexpected bug while having entries in copy= separated
by multiple spaces ("copy=osmo-stp.cfg osmo-stp-m3ua.confmerge"):
[testenv][m3ua] + ['cp', '-a', 'osmo-stp.cfg', '', 'osmo-stp-m3ua.confmerge', '/tmp/testenv-stp-m3ua-20250516-1349-e4103924-bfvi_syt/stp']
cp: cannot stat '': No such file or directory
Catch this early and print a more useful error:
[testenv] /home/user/code/osmo-dev/src/osmo-ttcn3-hacks/stp/testenv.cfg: copy= in section [stp] has multiple spaces:
[testenv] "osmo-stp.cfg osmo-stp-m3ua.confmerge"
[testenv] Please separate elements with only one space.
Change-Id: Ie47cf5482ba479457a662759ce87611a7c41e29c
---
M _testenv/testenv/testenv_cfg.py
1 file changed, 11 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/09/40309/1
diff --git a/_testenv/testenv/testenv_cfg.py b/_testenv/testenv/testenv_cfg.py
index 70d64c8..1ff662f 100644
--- a/_testenv/testenv/testenv_cfg.py
+++ b/_testenv/testenv/testenv_cfg.py
@@ -133,6 +133,10 @@
"packages": "package",
"programs": "program",
}
+ keys_lists = [
+ "copy",
+ "package",
+ ]
if "testsuite" not in cfg:
logging.error(f"{path}: missing [testsuite] section")
@@ -173,6 +177,13 @@
logging.error("If this is on purpose, set make=no.")
exit_error_readme()
+ for key in keys_lists:
+ if key in cfg[section] and " " in cfg[section][key]:
+ logging.error(f"{path}: {key}= in section [{section}] has multiple spaces:")
+ logging.error(f' "{cfg[section][key]}"')
+ logging.error("Please separate elements with only one space.")
+ sys.exit(1)
+
get_vty_host_port(cfg, path)
--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/40309?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: Ie47cf5482ba479457a662759ce87611a7c41e29c
Gerrit-Change-Number: 40309
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith(a)sysmocom.de>
Hello Jenkins Builder,
I'd like you to reexamine a change. Please visit
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/40308?usp=email
to look at the new patch set (#2).
The following approvals got outdated and were removed:
Verified+1 by Jenkins Builder
Change subject: stp: Rename STP_Tests.ttcn -> STP_Tests_IPA_M3UA.ttcn
......................................................................
stp: Rename STP_Tests.ttcn -> STP_Tests_IPA_M3UA.ttcn
The previous name usually causes confusion since it seems to indicate
either:
* Some sort of common placeholder for STP_Tests_IPA and STP_Tests_M3UA
(it's not the case, we already have STP_Tests_Common.ttcn for that)
* A placeholder for tests not IPA or M3UA related (it's not the case,
since it only contains IPA<->M3UA tests).
Hence, rename it to denote better the aim of that file, ie. testing
forwarding between IPA and M3UA AS(P)s.
Change-Id: Id2963407adf11add01630c3899a062d764c8ad75
---
M stp/README.md
M stp/STP_Tests.cfg
M stp/STP_Tests_Common.ttcn
M stp/STP_Tests_IPA.ttcn
R stp/STP_Tests_IPA_M3UA.ttcn
M stp/STP_Tests_M3UA.ttcn
M stp/expected-results.xml
7 files changed, 11 insertions(+), 11 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/08/40308/2
--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/40308?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: newpatchset
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: Id2963407adf11add01630c3899a062d764c8ad75
Gerrit-Change-Number: 40308
Gerrit-PatchSet: 2
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Attention is currently required from: laforge, osmith, pespin.
Hello Jenkins Builder, laforge, osmith,
I'd like you to reexamine a change. Please visit
https://gerrit.osmocom.org/c/libosmocore/+/40296?usp=email
to look at the new patch set (#5).
The following approvals got outdated and were removed:
Code-Review+1 by laforge, Code-Review+1 by osmith, Verified+1 by Jenkins Builder
Change subject: osmo-config-merge: Fix comments with different indentation creating merge problems
......................................................................
osmo-config-merge: Fix comments with different indentation creating merge problems
VTY comments are not part of the tree structure, since they can be
placed anywhere and are just ignored.
Hence, ignore them when generating the tree structure during file read.
This has the backside that of course when merging files, comments on the
0-level show up in the end in testB.ok since the content below it in
testB.confmerge is now merged (properly) into previous nodes.
This can be slightly improved by placing the comments in the proper
indentation level, since if a new node is appended from the .confmerge,
they will be added in order and hence will show up properly.
Change-Id: I7de78d3ed3ca27e3470ea66a78ff9c5acfe65741
---
M tests/osmo-config-merge/testA.ok
M tests/osmo-config-merge/testB.ok
M tests/osmo-config-merge/testB2.ok
M utils/osmo-config-merge.c
4 files changed, 156 insertions(+), 128 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/96/40296/5
--
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/40296?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: newpatchset
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: I7de78d3ed3ca27e3470ea66a78ff9c5acfe65741
Gerrit-Change-Number: 40296
Gerrit-PatchSet: 5
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: osmith <osmith(a)sysmocom.de>
Gerrit-Attention: osmith <osmith(a)sysmocom.de>
Gerrit-Attention: laforge <laforge(a)osmocom.org>
Gerrit-Attention: pespin <pespin(a)sysmocom.de>