promise/plugin/check_cpri_lock: Fix it to work ok with Amarisoft 2022

Old Amarisoft versions emit data that is different compared to what 640c0130 expected:

- there can be trailing spaces after /dev/sdrX@Y
  fix: adjust /dev/sdr regex
- there is empty line coming in the end that fas failing in l.split(':', 1)
  fix: ignore empty lines and make detection of : in the line more
       robust with reporting which line is not valid instead of just
       "ERROR not enough values to unpack (expected 2, got 1)"
- there is CPRI key instead of CPRI_option, and the data in both are different.
  fix: detect automatically whether it is CPRI_option or CPRI option that is present.

/co-authored-by lu.xu <lu.xu@nexedi.com>
/reviewed-on !132
195 jobs for master in 0 seconds (queued for 1 second)
Status Job ID Name Coverage
  External
failed SlapOS.Eggs.UnitTest-Master.Python3

00:14:37

failed SlapOS.Eggs.UnitTest-Master.Python3

00:26:19

failed SlapOS.Eggs.UnitTest-Master.Python3

00:15:06

failed SlapOS.Eggs.UnitTest-Master.Python3

00:29:54

failed SlapOS.Eggs.UnitTest-Master.Python3

00:20:31

failed SlapOS.Eggs.UnitTest-Master.Python3

00:26:39

failed SlapOS.Eggs.UnitTest-Master.Python3

00:14:59

failed SlapOS.Eggs.UnitTest-Master.Python3

00:17:27

failed SlapOS.Eggs.UnitTest-Master.Python3

00:20:25

failed SlapOS.Eggs.UnitTest-Master.Python3

00:30:26

failed SlapOS.Eggs.UnitTest-Master.Python3

00:27:15

failed SlapOS.Eggs.UnitTest-Master.Python3

00:15:02

failed SlapOS.Eggs.UnitTest-Master.Python3

08:19:24

failed SlapOS.Eggs.UnitTest-Master.Python3

00:31:56

failed SlapOS.Eggs.UnitTest-Master.Python3

00:32:09

failed SlapOS.Eggs.UnitTest-Master.Python3

00:15:48

failed SlapOS.Eggs.UnitTest-Master.Python3

00:40:59

failed SlapOS.Eggs.UnitTest-Master.Python3

00:32:11

failed SlapOS.Eggs.UnitTest-Master.Python3

00:16:23

failed SlapOS.Eggs.UnitTest-Master.Python3

01:55:00

failed SlapOS.Eggs.UnitTest-Master.Python3

00:18:28

failed SlapOS.Eggs.UnitTest-Master.Python3

00:18:13

failed SlapOS.Eggs.UnitTest-Master.Python3

00:15:31

failed SlapOS.Eggs.UnitTest-Master.Python3

00:17:08

failed SlapOS.Eggs.UnitTest-Master.Python3

00:36:32

failed SlapOS.Eggs.UnitTest-Master.Python3

00:15:38

failed SlapOS.Eggs.UnitTest-Master.Python3

00:18:19

failed SlapOS.Eggs.UnitTest-Master.Python3

00:17:31

failed SlapOS.Eggs.UnitTest-Master.Python3

00:20:41

failed SlapOS.Eggs.UnitTest-Master.Python3

02:33:10

failed SlapOS.Eggs.UnitTest-Master.Python3

02:34:21

failed SlapOS.Eggs.UnitTest-Master.Python3

00:17:24

failed SlapOS.Eggs.UnitTest-Master.Python3

00:24:29

failed SlapOS.Eggs.UnitTest-Master.Python3

00:20:34

failed SlapOS.Eggs.UnitTest-Master.Python3

00:16:47

failed SlapOS.Eggs.UnitTest-Master.Python3

00:45:42

failed SlapOS.Eggs.UnitTest-Master.Python3

00:48:38

failed SlapOS.Eggs.UnitTest-Master.Python3

00:30:06

failed SlapOS.Eggs.UnitTest-Master.Python3

01:49:05

failed SlapOS.Eggs.UnitTest-Master.Python3

00:28:50

failed SlapOS.Eggs.UnitTest-Master.Python3

00:30:22

failed SlapOS.Eggs.UnitTest-Master.Python3

00:31:35

failed SlapOS.Eggs.UnitTest-Master.Python3

00:35:45

failed SlapOS.Eggs.UnitTest-Master.Python3

00:33:13

failed SlapOS.Eggs.UnitTest-Master.Python3

00:31:05

failed SlapOS.Eggs.UnitTest-Master.Python3

00:29:36

failed SlapOS.Eggs.UnitTest-Master.Python3

00:27:34

failed SlapOS.Eggs.UnitTest-Master.Python3

00:26:41

failed SlapOS.Eggs.UnitTest-Master.Python3

00:43:03

failed SlapOS.Eggs.UnitTest-Master.Python3

00:39:06

failed SlapOS.Eggs.UnitTest-Master.Python3

02:04:05

failed SlapOS.Eggs.UnitTest-Master.Python3

00:42:28

failed SlapOS.Eggs.UnitTest-Master.Python3

00:34:42

failed SlapOS.Eggs.UnitTest-Master.Python3

00:44:23

failed SlapOS.Eggs.UnitTest-Master.Python3

00:42:56

failed SlapOS.Eggs.UnitTest-Master.Python3

00:46:38

failed SlapOS.Eggs.UnitTest-Master.Python3

00:44:15

failed SlapOS.Eggs.UnitTest-Master.Python3

00:36:55

failed SlapOS.Eggs.UnitTest-Master.Python3

00:44:54

failed SlapOS.Eggs.UnitTest-Master.Python3

00:21:53

failed SlapOS.Eggs.UnitTest-Master.Python3

00:27:31

failed SlapOS.Eggs.UnitTest-Master.Python3

00:30:27

failed SlapOS.Eggs.UnitTest-Master.Python3

00:32:35

failed SlapOS.Eggs.UnitTest-Master.Python3

00:31:32

failed SlapOS.Eggs.UnitTest-Master.Python3

00:35:36

failed SlapOS.Eggs.UnitTest-Master.Python3

00:23:30

failed SlapOS.Eggs.UnitTest-Master.Python3

00:14:49

failed SlapOS.Eggs.UnitTest-Master.Python3

00:24:27

failed SlapOS.Eggs.UnitTest-Master.Python3

00:28:17

failed SlapOS.Eggs.UnitTest-Master.Python3

00:16:32

failed SlapOS.Eggs.UnitTest-Master.Python3

03:58:38

failed SlapOS.Eggs.UnitTest-Master.Python3

00:31:20

failed SlapOS.Eggs.UnitTest-Master.Python3

00:27:59

failed SlapOS.Eggs.UnitTest-Master.Python3

failed SlapOS.Eggs.UnitTest-Master.Python3

00:28:33

failed SlapOS.Eggs.UnitTest-Master.Python3

00:27:33

failed SlapOS.Eggs.UnitTest-Master.Python3

02:17:24

failed SlapOS.Eggs.UnitTest-Master.Python3

00:29:02

failed SlapOS.Eggs.UnitTest-Master.Python3

00:32:17

failed SlapOS.Eggs.UnitTest-Master.Python3

00:30:51

failed SlapOS.Eggs.UnitTest-Master.Python3

00:32:28

failed SlapOS.Eggs.UnitTest-Master.Python3

00:28:07

failed SlapOS.Eggs.UnitTest-Master.Python3

00:27:18

failed SlapOS.Eggs.UnitTest-Master.Python3

00:28:38

failed SlapOS.Eggs.UnitTest-Master.Python3

00:29:25

failed SlapOS.Eggs.UnitTest-Master.Python3

00:27:53

failed SlapOS.Eggs.UnitTest-Master.Python3

00:26:39

failed SlapOS.Eggs.UnitTest-Master.Python3

00:26:33

failed SlapOS.Eggs.UnitTest-Master.Python3

00:31:21

failed SlapOS.Eggs.UnitTest-Master.Python3

00:28:16

failed SlapOS.Eggs.UnitTest-Master.Python3

00:25:58

failed SlapOS.Eggs.UnitTest-Master.Python3

00:29:18

failed SlapOS.Eggs.UnitTest-Master.Python3

03:09:58

failed SlapOS.Eggs.UnitTest-Master.Python3

02:48:39

failed SlapOS.Eggs.UnitTest-Master.Python3

00:48:54

failed SlapOS.Eggs.UnitTest-Master.Python3

00:20:00

failed SlapOS.Eggs.UnitTest-Master.Python3

00:38:38

failed SlapOS.Eggs.UnitTest-Master.Python3

00:33:13

failed SlapOS.Eggs.UnitTest-Master.Python3

00:24:51

failed SlapOS.Eggs.UnitTest-Master.Python3

00:18:16

failed SlapOS.Eggs.UnitTest-Master.Python3

00:21:47

failed SlapOS.Eggs.UnitTest-Master.Python3

00:48:00

failed SlapOS.Eggs.UnitTest-Master.Python3

00:29:54

failed SlapOS.Eggs.UnitTest-Master.Python3

02:02:06

failed SlapOS.Eggs.UnitTest-Master.Python3

00:30:17

failed SlapOS.Eggs.UnitTest-Master.Python3

00:30:41

failed SlapOS.Eggs.UnitTest-Master.Python3

00:58:25

failed SlapOS.Eggs.UnitTest-Master.Python3

00:26:38

failed SlapOS.Eggs.UnitTest-Master.Python3

00:33:55

failed SlapOS.Eggs.UnitTest-Master.Python3

00:26:12

failed SlapOS.Eggs.UnitTest-Master.Python3

00:27:20

failed SlapOS.Eggs.UnitTest-Master.Python3

00:26:46

failed SlapOS.Eggs.UnitTest-Master.Python3

00:16:38

failed SlapOS.Eggs.UnitTest-Master.Python3

01:34:51

failed SlapOS.Eggs.UnitTest-Master.Python3

00:31:59

failed SlapOS.Eggs.UnitTest-Master.Python3

00:40:47

failed SlapOS.Eggs.UnitTest-Master.Python3

00:44:18

failed SlapOS.Eggs.UnitTest-Master.Python3

00:29:09

failed SlapOS.Eggs.UnitTest-Master.Python3

00:28:06

failed SlapOS.Eggs.UnitTest-Master.Python3

00:31:26

failed SlapOS.Eggs.UnitTest-Master.Python3

04:46:43

failed SlapOS.Eggs.UnitTest-Master.Python3

00:55:22

failed SlapOS.Eggs.UnitTest-Master.Python3

00:56:15

failed SlapOS.Eggs.UnitTest-Master.Python3

00:16:19

failed SlapOS.Eggs.UnitTest-Master.Python3

00:50:46

failed SlapOS.Eggs.UnitTest-Master.Python3

00:24:32

failed SlapOS.Eggs.UnitTest-Master.Python3

00:18:20

failed SlapOS.Eggs.UnitTest-Master.Python3

00:16:10

failed SlapOS.Eggs.UnitTest-Master.Python3

00:28:46

failed SlapOS.Eggs.UnitTest-Master.Python3

00:41:47

failed SlapOS.Eggs.UnitTest-Master.Python3

00:25:37

failed SlapOS.Eggs.UnitTest-Master.Python3

00:29:34

failed SlapOS.Eggs.UnitTest-Master.Python3

00:17:45

failed SlapOS.Eggs.UnitTest-Master.Python3

00:23:28

failed SlapOS.Eggs.UnitTest-Master.Python3

00:15:09

failed SlapOS.Eggs.UnitTest-Master.Python3

00:15:16

failed SlapOS.Eggs.UnitTest-Master.Python3

failed SlapOS.Eggs.UnitTest-Master.Python3

00:24:10

failed SlapOS.Eggs.UnitTest-Master.Python3

00:19:59

failed SlapOS.Eggs.UnitTest-Master.Python3

00:23:35

failed SlapOS.Eggs.UnitTest-Master.Python3

00:19:19

failed SlapOS.Eggs.UnitTest-Master.Python3

00:24:14

failed SlapOS.Eggs.UnitTest-Master.Python3

00:17:08

failed SlapOS.Eggs.UnitTest-Master.Python3

02:09:16

failed SlapOS.Eggs.UnitTest-Master.Python3

00:32:06

failed SlapOS.Eggs.UnitTest-Master.Python3

00:28:09

failed SlapOS.Eggs.UnitTest-Master.Python3

00:17:15

failed SlapOS.Eggs.UnitTest-Master.Python3

00:21:46

failed SlapOS.Eggs.UnitTest-Master.Python3

00:16:39

failed SlapOS.Eggs.UnitTest-Master.Python3

00:22:14

failed SlapOS.Eggs.UnitTest-Master.Python3

00:43:53

failed SlapOS.Eggs.UnitTest-Master.Python3

05:42:01

failed SlapOS.Eggs.UnitTest-Master.Python3

00:27:08

failed SlapOS.Eggs.UnitTest-Master.Python3

00:29:22

failed SlapOS.Eggs.UnitTest-Master.Python3

00:46:43

failed SlapOS.Eggs.UnitTest-Master.Python3

00:16:17

failed SlapOS.Eggs.UnitTest-Master.Python3

00:15:59

failed SlapOS.Eggs.UnitTest-Master.Python3

00:15:24

failed SlapOS.Eggs.UnitTest-Master.Python3

00:14:43

failed SlapOS.Eggs.UnitTest-Master.Python3

00:28:55

failed SlapOS.Eggs.UnitTest-Master.Python3

00:17:24

failed SlapOS.Eggs.UnitTest-Master.Python3

00:19:45

failed SlapOS.Eggs.UnitTest-Master.Python3

00:46:56

failed SlapOS.Eggs.UnitTest-Master.Python3

00:56:22

failed SlapOS.Eggs.UnitTest-Master.Python3

00:51:24

failed SlapOS.Eggs.UnitTest-Master.Python3

00:16:37

failed SlapOS.Eggs.UnitTest-Master.Python3

00:19:09

failed SlapOS.Eggs.UnitTest-Master.Python3

00:32:14

failed SlapOS.Eggs.UnitTest-Master.Python3

00:18:24

failed SlapOS.Eggs.UnitTest-Master.Python3

00:21:51

failed SlapOS.Eggs.UnitTest-Master.Python3

00:28:44

failed SlapOS.Eggs.UnitTest-Master.Python3

00:33:45

failed SlapOS.Eggs.UnitTest-Master.Python3

00:16:42

failed SlapOS.Eggs.UnitTest-Master.Python3

00:14:54

failed SlapOS.Eggs.UnitTest-Master.Python3

00:13:55

failed SlapOS.Eggs.UnitTest-Master.Python3

failed SlapOS.Eggs.UnitTest-Master.Python3

00:16:33

failed SlapOS.Eggs.UnitTest-Master.Python3

00:16:20

failed SlapOS.Eggs.UnitTest-Master.Python3

00:15:34

failed SlapOS.Eggs.UnitTest-Master.Python3

00:19:12

failed SlapOS.Eggs.UnitTest-Master.Python3

00:34:11

failed SlapOS.Eggs.UnitTest-Master.Python3

00:18:27

failed SlapOS.Eggs.UnitTest-Master.Python3

00:41:56

failed SlapOS.Eggs.UnitTest-Master.Python3

00:16:56

failed SlapOS.Eggs.UnitTest-Master.Python3

00:19:58

failed SlapOS.Eggs.UnitTest-Master.Python3

00:17:18

failed SlapOS.Eggs.UnitTest-Master.Python3

00:18:41

failed SlapOS.Eggs.UnitTest-Master.Python3

00:19:27

failed SlapOS.Eggs.UnitTest-Master.Python3

00:19:02

failed SlapOS.Eggs.UnitTest-Master.Python3

failed SlapOS.Eggs.UnitTest-Master.Python3

00:24:46

failed SlapOS.Eggs.UnitTest-Master.Python3

00:14:58

failed SlapOS.Eggs.UnitTest-Master.Python3

00:19:32

failed SlapOS.Eggs.UnitTest-Master.Python3

00:30:21

failed SlapOS.Eggs.UnitTest-Master.Python3

00:19:08