Files
meta-openembedded/meta-oe/recipes-support
Mingli Yu 6905274d2f libteam: switch to python3
The original fix for team_basic_test.py only change the interpreter
to python3, but still some error as below:
 # ./run-ptest
 File "/usr/lib64/libteam/ptest/./team_basic_test.py", line 35
 print "Usage: team_basic_test.py [OPTION...]"
 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?

 # ./run-ptest
 RUN #1
 # "ip link add testteamx type team"
 # "teamnl testteamx getoption mode"
 # "ip link del testteamx"
 # "modprobe -r team_mode_loadbalance team_mode_roundrobin team_mode_activebackup team_mode_broadcast team"
 Traceback (most recent call last):
  File "/usr/lib64/libteam/ptest/./team_basic_test.py", line 206, in <module>
    main()
  File "/usr/lib64/libteam/ptest/./team_basic_test.py", line 203, in main
    btest.run()
  File "/usr/lib64/libteam/ptest/./team_basic_test.py", line 180, in run
    self._run_one_loop(i + 1)
  File "/usr/lib64/libteam/ptest/./team_basic_test.py", line 173, in _run_one_loop
    self._run_one_mode(mode_name)
  File "/usr/lib64/libteam/ptest/./team_basic_test.py", line 101, in _run_one_mode
    cmd_exec("teamnl %s getoption mode" % team_name, "*NOMODE*")
  File "/usr/lib64/libteam/ptest/./team_basic_test.py", line 80, in cmd_exec
    raise CmdExecUnexpectedOutputException(output, expected_output)
 __main__.CmdExecUnexpectedOutputException: Command execution output unexpected: "b'*NOMODE*'" != "*NOMODE*"

 So rework team_basic_test.py to fix the above issue.

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2021-12-27 14:44:57 -08:00
..
2021-01-05 09:16:26 -08:00
2020-06-30 07:58:37 -07:00
2020-11-23 07:09:34 -08:00
2020-10-21 14:11:09 -07:00
2021-11-16 05:30:44 -08:00
2021-04-03 07:46:03 -07:00
2021-02-21 23:44:22 -08:00
2021-05-22 15:34:46 -07:00
2021-03-06 07:53:38 -08:00
2020-12-07 21:55:47 -08:00
2021-03-28 12:12:58 -07:00
2020-01-19 02:20:59 -08:00
2020-09-10 21:20:23 -07:00
2020-02-16 12:52:19 -08:00
2021-02-21 23:44:22 -08:00
2020-08-05 10:02:11 -07:00
2021-03-28 12:12:58 -07:00
2021-04-07 18:45:52 -07:00
2020-12-07 21:55:47 -08:00
2021-12-27 14:44:57 -08:00
2021-03-19 11:58:12 -07:00
2020-02-21 08:50:36 -08:00
2021-03-04 09:04:24 -08:00
2021-01-25 14:34:06 -08:00
2021-03-04 09:04:24 -08:00
2021-03-15 08:46:12 -07:00
2020-10-19 22:18:11 -07:00
2021-07-10 11:25:55 -07:00
2019-11-27 20:07:16 -08:00
2020-04-05 10:38:14 -07:00
2021-02-28 23:51:14 -08:00
2020-03-17 19:46:35 -07:00
2020-03-13 21:27:53 -07:00
2020-04-05 10:38:14 -07:00
2021-03-14 00:00:20 -08:00
2021-02-21 23:37:54 -08:00
2020-06-03 15:15:42 -07:00
2020-11-12 21:03:29 -08:00