Skip to content

Commit 9da03f9

Browse files
committed
add sh: package test helper
1 parent 67579c6 commit 9da03f9

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

test_dracut.sh

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
#!/usr/bin/bash
2+
3+
exit 3
4+
5+
set -xe
6+
7+
bash -n "$0"
8+
9+
s () {
10+
{ echo -e "\n" ; } 2>/dev/null
11+
}
12+
13+
n="$1"
14+
[[ -n "$n" ]]
15+
shift ||:
16+
17+
rm -f *.rpm
18+
19+
s
20+
21+
koji download-task --arch x86_64 $n
22+
23+
s
24+
25+
rm -f dracut-config-generic* dracut-debug* dracut-tools*
26+
27+
s
28+
29+
dnf reinstall -y *.rpm
30+
31+
s
32+
33+
dracut -v -f -H --kver="5.19.4-200.fc36.x86_64" "$@"
34+
35+
s
36+
37+
dracut -v -f -H --kver="5.19.4-200.fc36.x86_64" --uefi --hostonly-cmdline "$@"

0 commit comments

Comments
 (0)