blob: 8b3c439c49dff9ac9a392004307487a4de36da20 [file] [log] [blame]
#!/usr/bin/env vpython3
# Copyright 2021 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import sys
# vpython-provided modules.
from pyfakefs import fake_filesystem_unittest # pylint: disable=import-error
import exe_util
class ExeUtilTests(fake_filesystem_unittest.TestCase):
def test_run_and_tee_output(self):
# Test wrapping Python as it echos a '.' character back.
args = [sys.executable, '-c', "print('.')"]
output = exe_util.run_and_tee_output(args)
self.assertEqual('.', output.strip())