Skip to content

Commit

Permalink
python: Fix //tools/python:pywrapper_test; use correct path to program
Browse files Browse the repository at this point in the history
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
  • Loading branch information
rickeylev authored and copybara-github committed Feb 7, 2023
1 parent 44782dc commit b2b7039
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/python/pywrapper_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit b2b7039

Please sign in to comment.