This repository was archived by the owner on Mar 3, 2023. It is now read-only.
File tree 2 files changed +13
-21
lines changed
integration_test/src/python/local_test_runner
2 files changed +13
-21
lines changed Original file line number Diff line number Diff line change 1
- group : edge
1
+ ---
2
2
3
- sudo : required
3
+ group : edge
4
4
5
- dist : trusty
5
+ dist : bionic
6
6
7
7
language : java
8
8
9
+ os : linux
10
+
9
11
jdk :
10
12
- oraclejdk11
11
13
12
14
addons :
13
15
apt :
14
- sources :
15
- - ubuntu-toolchain-r-test
16
-
17
16
packages :
18
- - gcc-4.8
19
- - g++-4.8
20
- - gcc-4.8-multilib
21
- - g++-4.8-multilib
22
- - python2.7
17
+ - libtool-bin
18
+ - python-dev
19
+ - python-wheel
23
20
- wget
24
- - pkg-config
25
21
- zip
26
22
- zlib1g-dev
27
23
- google-perftools
28
24
- libgoogle-perftools-dev
29
25
30
26
env :
31
- - BAZEL_VERSION=0.26.0 CC=gcc-4.8 CXX=g++-4.8 CPP=cpp-4.8 CXXCPP=cpp-4.8 ENABLE_HEAPCHECK=1
27
+ - BAZEL_VERSION=0.26.0 ENABLE_HEAPCHECK=1
32
28
33
29
before_install :
34
30
# download and install bazel
35
31
- wget -q "https://github.com/bazelbuild/bazel/releases/download/${BAZEL_VERSION}/bazel-${BAZEL_VERSION}-installer-linux-x86_64.sh"
36
32
- chmod +x bazel-${BAZEL_VERSION}-installer-linux-x86_64.sh
37
33
- ./bazel-${BAZEL_VERSION}-installer-linux-x86_64.sh --user
38
34
39
- before_script :
40
- # install python module for wheel files
41
- # required for python packaging
42
- - sudo pip install wheel
43
-
44
35
script :
45
- - which gcc-4.8
36
+ - which gcc
46
37
- gcc --version
47
- - which g++-4.8
38
+ - which g++
48
39
- g++ --version
49
40
- which python
50
41
- python -V
Original file line number Diff line number Diff line change 27
27
import os
28
28
import time
29
29
from urllib .request import urlopen
30
+ import shutil
30
31
import signal
31
32
import subprocess
32
33
from collections import namedtuple
@@ -152,7 +153,7 @@ def _inject_test_data(self):
152
153
# move to read file. This guarantees contents will be put into the file the
153
154
# spout is reading from atomically
154
155
# which increases the determinism
155
- os . rename ('temp.txt' , self .params ['readFile' ])
156
+ shutil . move ('temp.txt' , self .params ['readFile' ])
156
157
157
158
def _check_results (self ):
158
159
""" get actual and expected result.
You can’t perform that action at this time.
0 commit comments