Skip to content

Commit 61687b2

Browse files
author
Samat Gaynutdinov
committed
refactor
1 parent a840d7c commit 61687b2

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

.github/workflows/build-utbot.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,6 @@ jobs:
121121
./docker/action-scripts/build-utbot.sh
122122
123123
- name: Generate tests
124-
if: steps.cache-generated-tests.outputs.cache-hit != 'true'
125124
run: |
126125
chmod +x docker/action-scripts/generate-tests.sh
127126
./docker/action-scripts/generate-tests.sh

docker/action-scripts/check-portable-tests.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ PROJECT_DIR=$CURRENT_FOLDER/../..
1010
PORTABLE_CONTAINER="Portable"
1111

1212
# run Portable container
13-
docker run -d --name=$(PORTABLE_CONTAINER) $(docker images | awk '{print $1}' | awk 'NR==2') > /dev/null
13+
docker run -d --name $(PORTABLE_CONTAINER) $(docker images | awk '{print $1}' | awk 'NR==2') > /dev/null
1414

1515
# Copy tests inside Portable container
1616
docker cp "$PROJECT_DIR/integration-tests/c-example/" $(PORTABLE_CONTAINER):/home/c-example
1717

1818
# Jump to container and check portability
19-
docker exec -it $(PORTABLE_CONTAINER) /bin/bash
20-
docker exec $(PORTABLE_CONTAINER) /bin/sh -c "rm -r /home/c-example/utbot_build && env make -f /home/c-example/tests/lib/floats/floating_point_plain.mk run GTEST_FLAGS=\"--gtest_filter=*.plain_isnan_test_1\" clang=\"/usr/bin/clang-10\" clangxx=\"/usr/bin/clang++-10\" gtest=\"/gtest\"
21-
"
19+
REMOVE_CMD="rm -r /home/c-example/utbot_build"
20+
RUN_TEST_CMD="env make -f /home/c-example/tests/lib/floats/floating_point_plain.mk run GTEST_FLAGS=\"--gtest_filter=*.plain_isnan_test_1\" clang=\"/usr/bin/clang-10\" clangxx=\"/usr/bin/clang++-10\" gtest=\"/gtest\""
21+
docker exec $(PORTABLE_CONTAINER) /bin/sh -c "$(REMOVE_CMD) && $(RUN_TEST_CMD)"

0 commit comments

Comments
 (0)