Skip to content

Commit e49a8c5

Browse files
committed
Use environment variables in tests
1 parent 26ccdb0 commit e49a8c5

File tree

4 files changed

+9
-8
lines changed

4 files changed

+9
-8
lines changed

tmt/tests/container/sanity/init/init.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#!/bin/bash
22
# prep
3-
git clone "$TESTING_FARM_GIT_URL" repo
3+
git clone "$REPO_URL" repo
44
cd repo
5-
git fetch origin "$TESTING_FARM_GIT_REF"
5+
git fetch origin "$PR_HEAD"
66
git checkout FETCH_HEAD
77

88
grep -q systemd /proc/1/comm

tmt/tests/container/sanity/upgrade/upgrade.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#!/bin/bash
22
# prep
3-
git clone "$TESTING_FARM_GIT_URL" repo
3+
git clone "$REPO_URL" repo
44
cd repo
5-
git fetch origin "$TESTING_FARM_GIT_REF"
5+
git fetch origin "$PR_HEAD"
66
git checkout FETCH_HEAD
77

88
echo "Fedora release:"

tmt/tests/virtual/sanity/init/init.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
#!/bin/bash
22
# prep
3-
git clone "$TESTING_FARM_GIT_URL" repo
3+
git clone "$REPO_URL" repo
44
cd repo
5-
git fetch origin "$TESTING_FARM_GIT_REF"
5+
git fetch origin "$PR_HEAD"
66
git checkout FETCH_HEAD
7+
git log -1 --oneline
78

89
# setup
910
autoreconf -vfi

tmt/tests/virtual/sanity/upgrade/upgrade.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#!/bin/bash
22
# prep
3-
git clone "$TESTING_FARM_GIT_URL" repo
3+
git clone "$REPO_URL" repo
44
cd repo
5-
git fetch origin "$TESTING_FARM_GIT_REF"
5+
git fetch origin "$PR_HEAD"
66
git checkout FETCH_HEAD
77
echo "Fedora release:"
88
cat /etc/fedora-release

0 commit comments

Comments
 (0)