Skip to content

Commit 21e4ff9

Browse files
committed
test: let vm.install work both locally and with tmt
1 parent 00631e9 commit 21e4ff9

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

test/vm.install

+7-3
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,13 @@ fi
1616
REPODIR=/etc/osbuild-composer/repositories
1717
sudo mkdir -p $REPODIR
1818
# Copy rhel nightly overrides
19-
cp /home/admin/files/rhel-95.json /etc/osbuild-composer/repositories/rhel-95.json
20-
cp /home/admin/files/rhel-10.json /etc/osbuild-composer/repositories/rhel-10.json
21-
cp /home/admin/files/rhel-10.json /etc/osbuild-composer/repositories/rhel-10.0.json
19+
if [ -d /home/admin/files ]; then
20+
cp /home/admin/files/rhel-95.json /etc/osbuild-composer/repositories/rhel-95.json
21+
cp /home/admin/files/rhel-10.json /etc/osbuild-composer/repositories/rhel-10.0.json
22+
else
23+
cp test/files/rhel-95.json /etc/osbuild-composer/repositories/rhel-95.json
24+
cp test/files/rhel-10.json /etc/osbuild-composer/repositories/rhel-10.json
25+
fi
2226
ln -s /etc/osbuild-composer/repositories/rhel-95.json /etc/osbuild-composer/repositories/rhel-95-beta.json
2327
ln -s /etc/osbuild-composer/repositories/rhel-95.json /etc/osbuild-composer/repositories/rhel-95-ga.json
2428

0 commit comments

Comments
 (0)