From b2b703915401e5def0661e34816e03cb1d1f5c53 Mon Sep 17 00:00:00 2001 From: Richard Levasseur Date: Mon, 6 Feb 2023 17:51:05 -0800 Subject: [PATCH] python: Fix //tools/python:pywrapper_test; use correct path to program I typo'd the variable name when copying into my Google codebase. Name should have been "path" instead of "cmd". PiperOrigin-RevId: 507630790 Change-Id: I4c84b70ac0b978cbbb36bdf72177f31211456964 --- tools/python/pywrapper_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/python/pywrapper_test.py b/tools/python/pywrapper_test.py index f5eacd54c6ce61..baee22c7b99ca2 100644 --- a/tools/python/pywrapper_test.py +++ b/tools/python/pywrapper_test.py @@ -90,7 +90,7 @@ def setup_tool(self, cmd): # work -- they simply fail with "Killed: 9". To workaround that, just # re-exec the actual binary. self.ScratchFile("dir/" + cmd, - ["#!/bin/sh", 'exec {} "$@"'.format(cmd)], + ["#!/bin/sh", 'exec {} "$@"'.format(path)], executable=True) def locate_runfile(self, runfile_path):