You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
622 B

#!/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 argparse
import json
import os
from pyfakefs import fake_filesystem_unittest
import sys
import tempfile
import unittest
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())