Skip to content

Commit 62b9ad4

Browse files
committed
chore: printenv in travis
1 parent 5568a10 commit 62b9ad4

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ node_js: 10
55
before_install:
66
- pip install -U pip
77
install:
8-
- ls ~/
8+
- printenv
99
- sudo apt-get update
1010
- sudo apt-get install tesseract-ocr
1111
- sudo apt-get install libtesseract-dev

core_tests/utils/run_tests.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
# noinspection PyMethodMayBeStatic
1414
class RunTests(unittest.TestCase):
15+
current_file = os.path.basename(__file__)
1516
current_folder = os.path.dirname(os.path.realpath(__file__))
1617

1718
def tearDown(self):
@@ -23,7 +24,7 @@ def test_01_run_simple_command(self):
2324
assert result.log_file is None, 'No log file should be generated if wait=True.'
2425
assert result.complete is True, 'Complete should be true when process execution is complete.'
2526
assert result.duration < 1, 'Process duration took too much time.'
26-
assert 'run_tests.py' in result.output, 'Listing do not return correct output.'
27+
assert self.current_file in result.output, 'Listing do not return correct output.'
2728

2829
def test_02_run_command_with_redirect(self):
2930
out_file = os.path.join(Settings.TEST_OUT_HOME, 'log.txt')
@@ -33,7 +34,7 @@ def test_02_run_command_with_redirect(self):
3334
assert result.complete is True, 'Complete should be true when process execution is complete.'
3435
assert result.duration < 1, 'Process duration took too much time.'
3536
assert result.output == '', 'Output should be empty.'
36-
assert 'run_tests.py' in File.read(path=out_file)
37+
assert self.current_file in File.read(path=out_file)
3738

3839
def test_03_run_command_with_pipe(self):
3940
result = run(cmd='echo "test case" | wc -w ', wait=True, timeout=1)

0 commit comments

Comments
 (0)