diff --git a/e2e/test/BUILD.bazel b/e2e/test/BUILD.bazel index e615b8dba01fa0531c7eca47f4be4f292824768b..48677fb21bedc343daeb487a6fabd3e335a8666f 100644 --- a/e2e/test/BUILD.bazel +++ b/e2e/test/BUILD.bazel @@ -68,3 +68,29 @@ labgrid_test( env = {"GREETING": "hello"}, platform = "@rules_labgrid//labgrid/platform:localhost", ) + +write_file( + name = "assert-args", + out = "args.py", + content = [ + "from sys import argv", + "assert argv[1:] == ['hello', 'world']", + ], +) + +py_binary( + name = "inner-assert-args", + srcs = ["args.py"], + main = "args.py", +) + +labgrid_test( + name = "args", + size = "small", + src = ":inner-assert-args", + args = [ + "hello", + "world", + ], + platform = "@rules_labgrid//labgrid/platform:localhost", +)