clients: disable asan leak detection in client tests

Leak detection adds unhelpful messages to the stderr of nmcli, making
tests fail. For example:

 =================================================================
 ==17156==ERROR: LeakSanitizer: detected memory leaks

 Direct leak of 256 byte(s) in 2 object(s) allocated from:
     #0 0x7f08c7e27c88 in realloc (/lib64/libasan.so.5+0xefc88)
     #1 0x7f08c7546e7d in g_realloc (/lib64/libglib-2.0.so.0+0x54e7d)

(cherry picked from commit 2fe9141960)
This commit is contained in:
Beniamino Galvani 2019-04-12 06:40:16 +02:00
parent 68c167bdc3
commit 3c35fdd058
5 changed files with 1339 additions and 1338 deletions

View file

@ -1,5 +1,5 @@
size: 395
location: clients/tests/test-client.py:841:test_001()/1
location: clients/tests/test-client.py:842:test_001()/1
cmd: $NMCLI
lang: C
returncode: 0
@ -15,7 +15,7 @@ Consult nmcli(1) and nmcli-examples(5) manual pages for complete usage details.
<<<
size: 438
location: clients/tests/test-client.py:841:test_001()/2
location: clients/tests/test-client.py:842:test_001()/2
cmd: $NMCLI
lang: pl_PL.UTF-8
returncode: 0
@ -33,7 +33,7 @@ o użyciu.
<<<
size: 188
location: clients/tests/test-client.py:843:test_001()/3
location: clients/tests/test-client.py:844:test_001()/3
cmd: $NMCLI -f AP -mode multiline -p d show wlan0
lang: C
returncode: 10
@ -43,7 +43,7 @@ Error: Device 'wlan0' not found.
<<<
size: 214
location: clients/tests/test-client.py:843:test_001()/4
location: clients/tests/test-client.py:844:test_001()/4
cmd: $NMCLI -f AP -mode multiline -p d show wlan0
lang: pl_PL.UTF-8
returncode: 10
@ -53,7 +53,7 @@ Błąd: Nie odnaleziono urządzenia „wlan0”.
<<<
size: 120
location: clients/tests/test-client.py:845:test_001()/5
location: clients/tests/test-client.py:846:test_001()/5
cmd: $NMCLI c s
lang: C
returncode: 0
@ -63,7 +63,7 @@ stdout: 1 bytes
<<<
size: 130
location: clients/tests/test-client.py:845:test_001()/6
location: clients/tests/test-client.py:846:test_001()/6
cmd: $NMCLI c s
lang: pl_PL.UTF-8
returncode: 0
@ -73,7 +73,7 @@ stdout: 1 bytes
<<<
size: 192
location: clients/tests/test-client.py:847:test_001()/7
location: clients/tests/test-client.py:848:test_001()/7
cmd: $NMCLI bogus s
lang: C
returncode: 2
@ -83,7 +83,7 @@ Error: argument 'bogus' not understood. Try passing --help instead.
<<<
size: 221
location: clients/tests/test-client.py:847:test_001()/8
location: clients/tests/test-client.py:848:test_001()/8
cmd: $NMCLI bogus s
lang: pl_PL.UTF-8
returncode: 2
@ -93,7 +93,7 @@ Błąd: nie zrozumiano parametru „bogus”. Można użyć „--help” zamiast
<<<
size: 1488
location: clients/tests/test-client.py:850:test_001()/9
location: clients/tests/test-client.py:851:test_001()/9
cmd: $NMCLI general permissions
lang: C
returncode: 0
@ -120,7 +120,7 @@ org.freedesktop.NetworkManager.wifi.scan unknown
<<<
size: 1517
location: clients/tests/test-client.py:850:test_001()/10
location: clients/tests/test-client.py:851:test_001()/10
cmd: $NMCLI general permissions
lang: pl_PL.UTF-8
returncode: 0
@ -147,7 +147,7 @@ org.freedesktop.NetworkManager.wifi.scan nieznane
<<<
size: 1618
location: clients/tests/test-client.py:850:test_001()/11
location: clients/tests/test-client.py:851:test_001()/11
cmd: $NMCLI --color yes general permissions
lang: C
returncode: 0
@ -174,7 +174,7 @@ org.freedesktop.NetworkManager.wifi.scan unknown
<<<
size: 1646
location: clients/tests/test-client.py:850:test_001()/12
location: clients/tests/test-client.py:851:test_001()/12
cmd: $NMCLI --color yes general permissions
lang: pl_PL.UTF-8
returncode: 0
@ -201,7 +201,7 @@ org.freedesktop.NetworkManager.wifi.scan nieznane
<<<
size: 1695
location: clients/tests/test-client.py:850:test_001()/13
location: clients/tests/test-client.py:851:test_001()/13
cmd: $NMCLI --pretty general permissions
lang: C
returncode: 0
@ -232,7 +232,7 @@ org.freedesktop.NetworkManager.wifi.scan unknown
<<<
size: 1753
location: clients/tests/test-client.py:850:test_001()/14
location: clients/tests/test-client.py:851:test_001()/14
cmd: $NMCLI --pretty general permissions
lang: pl_PL.UTF-8
returncode: 0
@ -263,7 +263,7 @@ org.freedesktop.NetworkManager.wifi.scan nieznane
<<<
size: 1824
location: clients/tests/test-client.py:850:test_001()/15
location: clients/tests/test-client.py:851:test_001()/15
cmd: $NMCLI --pretty --color yes general permissions
lang: C
returncode: 0
@ -294,7 +294,7 @@ org.freedesktop.NetworkManager.wifi.scan unknown
<<<
size: 1882
location: clients/tests/test-client.py:850:test_001()/16
location: clients/tests/test-client.py:851:test_001()/16
cmd: $NMCLI --pretty --color yes general permissions
lang: pl_PL.UTF-8
returncode: 0
@ -325,7 +325,7 @@ org.freedesktop.NetworkManager.wifi.scan nieznane
<<<
size: 1094
location: clients/tests/test-client.py:850:test_001()/17
location: clients/tests/test-client.py:851:test_001()/17
cmd: $NMCLI --terse general permissions
lang: C
returncode: 0
@ -351,7 +351,7 @@ org.freedesktop.NetworkManager.wifi.scan:unknown
<<<
size: 1104
location: clients/tests/test-client.py:850:test_001()/18
location: clients/tests/test-client.py:851:test_001()/18
cmd: $NMCLI --terse general permissions
lang: pl_PL.UTF-8
returncode: 0
@ -377,7 +377,7 @@ org.freedesktop.NetworkManager.wifi.scan:unknown
<<<
size: 1224
location: clients/tests/test-client.py:850:test_001()/19
location: clients/tests/test-client.py:851:test_001()/19
cmd: $NMCLI --terse --color yes general permissions
lang: C
returncode: 0
@ -403,7 +403,7 @@ org.freedesktop.NetworkManager.wifi.scan:unknown
<<<
size: 1234
location: clients/tests/test-client.py:850:test_001()/20
location: clients/tests/test-client.py:851:test_001()/20
cmd: $NMCLI --terse --color yes general permissions
lang: pl_PL.UTF-8
returncode: 0
@ -429,7 +429,7 @@ org.freedesktop.NetworkManager.wifi.scan:unknown
<<<
size: 1504
location: clients/tests/test-client.py:850:test_001()/21
location: clients/tests/test-client.py:851:test_001()/21
cmd: $NMCLI --mode tabular general permissions
lang: C
returncode: 0
@ -456,7 +456,7 @@ org.freedesktop.NetworkManager.wifi.scan unknown
<<<
size: 1532
location: clients/tests/test-client.py:850:test_001()/22
location: clients/tests/test-client.py:851:test_001()/22
cmd: $NMCLI --mode tabular general permissions
lang: pl_PL.UTF-8
returncode: 0
@ -483,7 +483,7 @@ org.freedesktop.NetworkManager.wifi.scan nieznane
<<<
size: 1633
location: clients/tests/test-client.py:850:test_001()/23
location: clients/tests/test-client.py:851:test_001()/23
cmd: $NMCLI --mode tabular --color yes general permissions
lang: C
returncode: 0
@ -510,7 +510,7 @@ org.freedesktop.NetworkManager.wifi.scan unknown
<<<
size: 1661
location: clients/tests/test-client.py:850:test_001()/24
location: clients/tests/test-client.py:851:test_001()/24
cmd: $NMCLI --mode tabular --color yes general permissions
lang: pl_PL.UTF-8
returncode: 0
@ -537,7 +537,7 @@ org.freedesktop.NetworkManager.wifi.scan nieznane
<<<
size: 1710
location: clients/tests/test-client.py:850:test_001()/25
location: clients/tests/test-client.py:851:test_001()/25
cmd: $NMCLI --mode tabular --pretty general permissions
lang: C
returncode: 0
@ -568,7 +568,7 @@ org.freedesktop.NetworkManager.wifi.scan unknown
<<<
size: 1768
location: clients/tests/test-client.py:850:test_001()/26
location: clients/tests/test-client.py:851:test_001()/26
cmd: $NMCLI --mode tabular --pretty general permissions
lang: pl_PL.UTF-8
returncode: 0
@ -599,7 +599,7 @@ org.freedesktop.NetworkManager.wifi.scan nieznane
<<<
size: 1839
location: clients/tests/test-client.py:850:test_001()/27
location: clients/tests/test-client.py:851:test_001()/27
cmd: $NMCLI --mode tabular --pretty --color yes general permissions
lang: C
returncode: 0
@ -630,7 +630,7 @@ org.freedesktop.NetworkManager.wifi.scan unknown
<<<
size: 1897
location: clients/tests/test-client.py:850:test_001()/28
location: clients/tests/test-client.py:851:test_001()/28
cmd: $NMCLI --mode tabular --pretty --color yes general permissions
lang: pl_PL.UTF-8
returncode: 0
@ -661,7 +661,7 @@ org.freedesktop.NetworkManager.wifi.scan nieznane
<<<
size: 1109
location: clients/tests/test-client.py:850:test_001()/29
location: clients/tests/test-client.py:851:test_001()/29
cmd: $NMCLI --mode tabular --terse general permissions
lang: C
returncode: 0
@ -687,7 +687,7 @@ org.freedesktop.NetworkManager.wifi.scan:unknown
<<<
size: 1119
location: clients/tests/test-client.py:850:test_001()/30
location: clients/tests/test-client.py:851:test_001()/30
cmd: $NMCLI --mode tabular --terse general permissions
lang: pl_PL.UTF-8
returncode: 0
@ -713,7 +713,7 @@ org.freedesktop.NetworkManager.wifi.scan:unknown
<<<
size: 1239
location: clients/tests/test-client.py:850:test_001()/31
location: clients/tests/test-client.py:851:test_001()/31
cmd: $NMCLI --mode tabular --terse --color yes general permissions
lang: C
returncode: 0
@ -739,7 +739,7 @@ org.freedesktop.NetworkManager.wifi.scan:unknown
<<<
size: 1249
location: clients/tests/test-client.py:850:test_001()/32
location: clients/tests/test-client.py:851:test_001()/32
cmd: $NMCLI --mode tabular --terse --color yes general permissions
lang: pl_PL.UTF-8
returncode: 0
@ -765,7 +765,7 @@ org.freedesktop.NetworkManager.wifi.scan:unknown
<<<
size: 2464
location: clients/tests/test-client.py:850:test_001()/33
location: clients/tests/test-client.py:851:test_001()/33
cmd: $NMCLI --mode multiline general permissions
lang: C
returncode: 0
@ -808,7 +808,7 @@ VALUE: unknown
<<<
size: 2481
location: clients/tests/test-client.py:850:test_001()/34
location: clients/tests/test-client.py:851:test_001()/34
cmd: $NMCLI --mode multiline general permissions
lang: pl_PL.UTF-8
returncode: 0
@ -851,7 +851,7 @@ VALUE: nieznane
<<<
size: 2593
location: clients/tests/test-client.py:850:test_001()/35
location: clients/tests/test-client.py:851:test_001()/35
cmd: $NMCLI --mode multiline --color yes general permissions
lang: C
returncode: 0
@ -894,7 +894,7 @@ VALUE: unknown
<<<
size: 2610
location: clients/tests/test-client.py:850:test_001()/36
location: clients/tests/test-client.py:851:test_001()/36
cmd: $NMCLI --mode multiline --color yes general permissions
lang: pl_PL.UTF-8
returncode: 0
@ -937,7 +937,7 @@ VALUE: nieznane
<<<
size: 4046
location: clients/tests/test-client.py:850:test_001()/37
location: clients/tests/test-client.py:851:test_001()/37
cmd: $NMCLI --mode multiline --pretty general permissions
lang: C
returncode: 0
@ -1000,7 +1000,7 @@ VALUE: unknown
<<<
size: 4068
location: clients/tests/test-client.py:850:test_001()/38
location: clients/tests/test-client.py:851:test_001()/38
cmd: $NMCLI --mode multiline --pretty general permissions
lang: pl_PL.UTF-8
returncode: 0
@ -1063,7 +1063,7 @@ VALUE: nieznane
<<<
size: 4175
location: clients/tests/test-client.py:850:test_001()/39
location: clients/tests/test-client.py:851:test_001()/39
cmd: $NMCLI --mode multiline --pretty --color yes general permissions
lang: C
returncode: 0
@ -1126,7 +1126,7 @@ VALUE: unknown
<<<
size: 4197
location: clients/tests/test-client.py:850:test_001()/40
location: clients/tests/test-client.py:851:test_001()/40
cmd: $NMCLI --mode multiline --pretty --color yes general permissions
lang: pl_PL.UTF-8
returncode: 0
@ -1189,7 +1189,7 @@ VALUE: nieznane
<<<
size: 1401
location: clients/tests/test-client.py:850:test_001()/41
location: clients/tests/test-client.py:851:test_001()/41
cmd: $NMCLI --mode multiline --terse general permissions
lang: C
returncode: 0
@ -1232,7 +1232,7 @@ VALUE:unknown
<<<
size: 1411
location: clients/tests/test-client.py:850:test_001()/42
location: clients/tests/test-client.py:851:test_001()/42
cmd: $NMCLI --mode multiline --terse general permissions
lang: pl_PL.UTF-8
returncode: 0
@ -1275,7 +1275,7 @@ VALUE:unknown
<<<
size: 1530
location: clients/tests/test-client.py:850:test_001()/43
location: clients/tests/test-client.py:851:test_001()/43
cmd: $NMCLI --mode multiline --terse --color yes general permissions
lang: C
returncode: 0
@ -1318,7 +1318,7 @@ VALUE:unknown
<<<
size: 1540
location: clients/tests/test-client.py:850:test_001()/44
location: clients/tests/test-client.py:851:test_001()/44
cmd: $NMCLI --mode multiline --terse --color yes general permissions
lang: pl_PL.UTF-8
returncode: 0

View file

@ -1,5 +1,5 @@
size: 377
location: clients/tests/test-client.py:856:test_002()/1
location: clients/tests/test-client.py:857:test_002()/1
cmd: $NMCLI d
lang: C
returncode: 0
@ -14,7 +14,7 @@ wlan1 wifi unavailable --
<<<
size: 392
location: clients/tests/test-client.py:856:test_002()/2
location: clients/tests/test-client.py:857:test_002()/2
cmd: $NMCLI d
lang: pl_PL.UTF-8
returncode: 0
@ -29,7 +29,7 @@ wlan1 wifi niedostępne --
<<<
size: 978
location: clients/tests/test-client.py:858:test_002()/3
location: clients/tests/test-client.py:859:test_002()/3
cmd: $NMCLI -f all d
lang: C
returncode: 0
@ -44,7 +44,7 @@ wlan1 wifi unavailable unknown unknown /org/freedesk
<<<
size: 993
location: clients/tests/test-client.py:858:test_002()/4
location: clients/tests/test-client.py:859:test_002()/4
cmd: $NMCLI -f all d
lang: pl_PL.UTF-8
returncode: 0
@ -59,7 +59,7 @@ wlan1 wifi niedostępne nieznane nieznane /org/freedes
<<<
size: 739
location: clients/tests/test-client.py:860:test_002()/5
location: clients/tests/test-client.py:861:test_002()/5
cmd: $NMCLI
lang: C
returncode: 0
@ -95,7 +95,7 @@ Consult nmcli(1) and nmcli-examples(5) manual pages for complete usage details.
<<<
size: 812
location: clients/tests/test-client.py:860:test_002()/6
location: clients/tests/test-client.py:861:test_002()/6
cmd: $NMCLI
lang: pl_PL.UTF-8
returncode: 0
@ -133,7 +133,7 @@ o użyciu.
<<<
size: 1250
location: clients/tests/test-client.py:862:test_002()/7
location: clients/tests/test-client.py:863:test_002()/7
cmd: $NMCLI -f AP -mode multiline d show wlan0
lang: C
returncode: 0
@ -166,7 +166,7 @@ AP[3].SECURITY: WPA1 WPA2
<<<
size: 1287
location: clients/tests/test-client.py:862:test_002()/8
location: clients/tests/test-client.py:863:test_002()/8
cmd: $NMCLI -f AP -mode multiline d show wlan0
lang: pl_PL.UTF-8
returncode: 0
@ -199,7 +199,7 @@ AP[3].SECURITY: WPA1 WPA2
<<<
size: 1704
location: clients/tests/test-client.py:863:test_002()/9
location: clients/tests/test-client.py:864:test_002()/9
cmd: $NMCLI -f AP -mode multiline -p d show wlan0
lang: C
returncode: 0
@ -238,7 +238,7 @@ AP[3].SECURITY: WPA1 WPA2
<<<
size: 1749
location: clients/tests/test-client.py:863:test_002()/10
location: clients/tests/test-client.py:864:test_002()/10
cmd: $NMCLI -f AP -mode multiline -p d show wlan0
lang: pl_PL.UTF-8
returncode: 0
@ -277,7 +277,7 @@ AP[3].SECURITY: WPA1 WPA2
<<<
size: 581
location: clients/tests/test-client.py:864:test_002()/11
location: clients/tests/test-client.py:865:test_002()/11
cmd: $NMCLI -f AP -mode multiline -t d show wlan0
lang: C
returncode: 0
@ -310,7 +310,7 @@ AP[3].SECURITY:WPA1 WPA2
<<<
size: 618
location: clients/tests/test-client.py:864:test_002()/12
location: clients/tests/test-client.py:865:test_002()/12
cmd: $NMCLI -f AP -mode multiline -t d show wlan0
lang: pl_PL.UTF-8
returncode: 0
@ -343,7 +343,7 @@ AP[3].SECURITY:WPA1 WPA2
<<<
size: 455
location: clients/tests/test-client.py:865:test_002()/13
location: clients/tests/test-client.py:866:test_002()/13
cmd: $NMCLI -f AP -mode tabular d show wlan0
lang: C
returncode: 0
@ -356,7 +356,7 @@ AP[3] wlan0-ap-2 Infra 1 54 Mbit/s 34 ** WPA1 WPA2
<<<
size: 499
location: clients/tests/test-client.py:865:test_002()/14
location: clients/tests/test-client.py:866:test_002()/14
cmd: $NMCLI -f AP -mode tabular d show wlan0
lang: pl_PL.UTF-8
returncode: 0
@ -369,7 +369,7 @@ AP[3] wlan0-ap-2 Infrastruktura 1 54Mb/s 34 ** WPA1 W
<<<
size: 614
location: clients/tests/test-client.py:866:test_002()/15
location: clients/tests/test-client.py:867:test_002()/15
cmd: $NMCLI -f AP -mode tabular -p d show wlan0
lang: C
returncode: 0
@ -386,7 +386,7 @@ AP[3] wlan0-ap-2 Infra 1 54 Mbit/s 34 ** WPA1 WPA2
<<<
size: 694
location: clients/tests/test-client.py:866:test_002()/16
location: clients/tests/test-client.py:867:test_002()/16
cmd: $NMCLI -f AP -mode tabular -p d show wlan0
lang: pl_PL.UTF-8
returncode: 0
@ -403,7 +403,7 @@ AP[3] wlan0-ap-2 Infrastruktura 1 54Mb/s 34 ** WPA1 W
<<<
size: 309
location: clients/tests/test-client.py:867:test_002()/17
location: clients/tests/test-client.py:868:test_002()/17
cmd: $NMCLI -f AP -mode tabular -t d show wlan0
lang: C
returncode: 0
@ -415,7 +415,7 @@ AP[3]: :wlan0-ap-2:Infra:1:54 Mbit/s:34:** :WPA1 WPA2
<<<
size: 346
location: clients/tests/test-client.py:867:test_002()/18
location: clients/tests/test-client.py:868:test_002()/18
cmd: $NMCLI -f AP -mode tabular -t d show wlan0
lang: pl_PL.UTF-8
returncode: 0
@ -427,7 +427,7 @@ AP[3]: :wlan0-ap-2:Infrastruktura:1:54Mb/s:34:** :WPA1 WPA2
<<<
size: 1973
location: clients/tests/test-client.py:869:test_002()/19
location: clients/tests/test-client.py:870:test_002()/19
cmd: $NMCLI -f ALL d wifi
lang: C
returncode: 0
@ -445,7 +445,7 @@ NAME SSID SSID-HEX BSSID MODE CHAN FREQ RATE SIGNAL BARS SECURITY WPA
<<<
size: 2041
location: clients/tests/test-client.py:869:test_002()/20
location: clients/tests/test-client.py:870:test_002()/20
cmd: $NMCLI -f ALL d wifi
lang: pl_PL.UTF-8
returncode: 0
@ -463,7 +463,7 @@ NAME SSID SSID-HEX BSSID MODE CHAN FREQ RATE SIGNAL BARS SECURITY WPA
<<<
size: 246
location: clients/tests/test-client.py:871:test_002()/21
location: clients/tests/test-client.py:872:test_002()/21
cmd: $NMCLI c
lang: C
returncode: 0
@ -474,7 +474,7 @@ con-1 5fcfd6d7-1e63-3332-8826-a7eda103792d ethernet --
<<<
size: 256
location: clients/tests/test-client.py:871:test_002()/22
location: clients/tests/test-client.py:872:test_002()/22
cmd: $NMCLI c
lang: pl_PL.UTF-8
returncode: 0
@ -485,7 +485,7 @@ con-1 5fcfd6d7-1e63-3332-8826-a7eda103792d ethernet --
<<<
size: 1224
location: clients/tests/test-client.py:873:test_002()/23
location: clients/tests/test-client.py:874:test_002()/23
cmd: $NMCLI c s con-1
lang: C
returncode: 0
@ -517,7 +517,7 @@ connection.llmnr: -1 (default)
<<<
size: 1236
location: clients/tests/test-client.py:873:test_002()/24
location: clients/tests/test-client.py:874:test_002()/24
cmd: $NMCLI c s con-1
lang: pl_PL.UTF-8
returncode: 0

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -589,6 +589,7 @@ class TestNmcli(NmTestBase):
env['LIBNM_USE_SESSION_BUS'] = '1'
env['LIBNM_USE_NO_UDEV'] = '1'
env['TERM'] = 'linux'
env['ASAN_OPTIONS'] = 'detect_leaks=0'
env['XDG_CONFIG_HOME'] = PathConfiguration.srcdir()
if fatal_warnings is _DEFAULT_ARG or fatal_warnings:
env['G_DEBUG'] = 'fatal-warnings'