8000 [CI] work with 'time' is corrected · postgrespro/testgres@126608d · GitHub
[go: up one dir, main page]

Skip to content

Commit 126608d

Browse files
[CI] work with 'time' is corrected
AltLinux 10 does not support the sequential "time <set_env> coverage run ...". Because this OS does not has a builtin command 'time' in bash. https://forum.altlinux.org/index.php?topic=48342.0 We will install 'time' manually and use another command "<set_env> time coverage run ..." that works without problems but it requires to install 'time' on Ubuntu 2024.04, too. AlpineLinux processes a new command line without any problems.
1 parent ddfaff4 commit 126608d

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

Dockerfile--ubuntu_24_04.tmpl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ RUN apt update
99
RUN apt install -y sudo curl ca-certificates
1010
RUN apt update
1111
RUN apt install -y openssh-server
12+
RUN apt install -y time
1213

1314
RUN apt update
1415
RUN apt install -y postgresql-common

run_tests.sh

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,13 @@ time coverage run -a -m pytest -l -v -n 4 -k "${TEST_FILTER}"
4545

4646

4747
# run tests (PG_BIN)
48-
time \
49-
PG_BIN=$(pg_config --bindir) \
50-
coverage run -a -m pytest -l -v -n 4 -k "${TEST_FILTER}"
48+
PG_BIN=$(pg_config --bindir) \
49+
time coverage run -a -m pytest -l -v -n 4 -k "${TEST_FILTER}"
5150

5251

5352
# run tests (PG_CONFIG)
54-
time \
55-
PG_CONFIG=$(pg_config --bindir)/pg_config \
56-
coverage run -a -m pytest -l -v -n 4 -k "${TEST_FILTER}"
53+
PG_CONFIG=$(pg_config --bindir)/pg_config \
54+
time coverage run -a -m pytest -l -v -n 4 -k "${TEST_FILTER}"
5755

5856

5957
# show coverage

0 commit comments

Comments
 (0)
0