]> git.puffer.fish Git - matthieu/frr.git/commitdiff
topotest: Command using wrong python version
authorRodrigo Nardi <rnardi@netdef.org>
Thu, 17 Aug 2023 17:32:32 +0000 (14:32 -0300)
committerRodrigo Nardi <rnardi@netdef.org>
Wed, 30 Aug 2023 13:59:33 +0000 (10:59 -0300)
Changing command from python to python3.

Signed-off-by: Rodrigo Nardi <rnardi@netdef.org>
tests/topotests/lib/grpc-query.py

index 5dd12d581edd3b23aa7bade11d01911b64f5bc53..8c4701c24390629ec91fb247cfe5d0d617c590e6 100755 (executable)
@@ -26,7 +26,7 @@ try:
 
     commander.cmd_raises(f"cp {CWD}/../../../grpc/frr-northbound.proto .")
     commander.cmd_raises(
-        f"python -m grpc_tools.protoc --python_out=. --grpc_python_out=. -I . frr-northbound.proto"
+        f"python3 -m grpc_tools.protoc --python_out=. --grpc_python_out=. -I . frr-northbound.proto"
     )
 except Exception as error:
     logging.error("can't create proto definition modules %s", error)
@@ -36,17 +36,6 @@ try:
     sys.path[0:0] = "."
     import frr_northbound_pb2
     import frr_northbound_pb2_grpc
-
-    # Would be nice if compiling the modules internally from the source worked
-    # # import grpc_tools.protoc
-    # # proto_include = pkg_resources.resource_filename("grpc_tools", "_proto")
-    # from grpc_tools.protoc import _proto_file_to_module_name, _protos_and_services
-    # try:
-    #     frr_northbound_pb2, frr_northbound_pb2_grpc = _protos_and_services(
-    #         "frr_northbound.proto"
-    #     )
-    # finally:
-    #     os.chdir(CWD)
 except Exception as error:
     logging.error("can't import proto definition modules %s", error)
     raise