Skip to content
Snippets Groups Projects
Commit f6d57f3a authored by Ondřej Caletka's avatar Ondřej Caletka Committed by Nikos Mavrogiannopoulos
Browse files

Fix tests for macOS

On macOS, tr -d [:space:] removes also newline. So it has to be applied
on both sides of the comparsion.
parent f14f19f7
No related branches found
No related tags found
1 merge request!37Fix ULA prefix generator to use only defined ULA range
......@@ -761,7 +761,7 @@ test('SplitLinesByNetworkIPv4',
testrunner,
args : [
'--test-equal',
ipcalc.full_path() + ' -S 29 192.168.5.0/24 | grep ^Network | wc -l',
ipcalc.full_path() + ' -S 29 192.168.5.0/24 | grep ^Network | wc -l | tr -d [:space:]',
ipcalc.full_path() + ' -S 29 192.168.5.0/24 | grep ^Total | cut -d: -f 2 | tr -d [:space:]'
]
)
......@@ -769,7 +769,7 @@ test('SplitLinesByNetworkIPv6',
testrunner,
args : [
'--test-equal',
ipcalc.full_path() + ' -S 120 fcfa:b4ca:f1d8:125b:dc00::/112 | grep ^Network | wc -l',
ipcalc.full_path() + ' -S 120 fcfa:b4ca:f1d8:125b:dc00::/112 | grep ^Network | wc -l | tr -d [:space:]',
ipcalc.full_path() + ' -S 120 fcfa:b4ca:f1d8:125b:dc00::/112 | grep ^Total|cut -d: -f 2 | tr -d [:space:]'
]
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment