[ostree] tests: Drop kernel modules from checksums
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ostree] tests: Drop kernel modules from checksums
- Date: Fri, 30 Aug 2013 22:13:23 +0000 (UTC)
commit b2625268aa6eb5f4eb98a13f9d6a1e714bd8168e
Author: Colin Walters <walters verbum org>
Date: Fri Aug 30 18:12:31 2013 -0400
tests: Drop kernel modules from checksums
We can actually share these across different kernels. Thanks to
Tobias Hunger <tobias hunger gmail com> for pointing this out.
tests/libtest.sh | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/tests/libtest.sh b/tests/libtest.sh
index fa6791c..eeedf91 100644
--- a/tests/libtest.sh
+++ b/tests/libtest.sh
@@ -175,8 +175,7 @@ setup_os_repository () {
mkdir -p boot usr/bin usr/lib/modules/3.6.0 usr/share usr/etc
echo "a kernel" > boot/vmlinuz-3.6.0
echo "an initramfs" > boot/initramfs-3.6.0
- echo "a kernel module" > usr/lib/modules/3.6.0/foofs.ko
- bootcsum=$(cat boot/vmlinuz-3.6.0 boot/initramfs-3.6.0 usr/lib/modules/3.6.0/foofs.ko | sha256sum | cut
-f 1 -d ' ')
+ bootcsum=$(cat boot/vmlinuz-3.6.0 boot/initramfs-3.6.0 | sha256sum | cut -f 1 -d ' ')
export bootcsum
mv boot/vmlinuz-3.6.0 boot/vmlinuz-3.6.0-${bootcsum}
mv boot/initramfs-3.6.0 boot/initramfs-3.6.0-${bootcsum}
@@ -223,9 +222,7 @@ os_repository_new_commit ()
rm boot/*
echo "new: a kernel" > boot/vmlinuz-3.6.0
echo "new: an initramfs" > boot/initramfs-3.6.0
- echo "new: a kernel module" > usr/lib/modules/3.6.0/foofs.ko
- echo "new: another kernel module" > usr/lib/modules/3.6.0/othermod.ko
- bootcsum=$(cat boot/vmlinuz-3.6.0 boot/initramfs-3.6.0 usr/lib/modules/3.6.0/foofs.ko
usr/lib/modules/3.6.0/othermod.ko | sha256sum | cut -f 1 -d ' ')
+ bootcsum=$(cat boot/vmlinuz-3.6.0 boot/initramfs-3.6.0 | sha256sum | cut -f 1 -d ' ')
export bootcsum
mv boot/vmlinuz-3.6.0 boot/vmlinuz-3.6.0-${bootcsum}
mv boot/initramfs-3.6.0 boot/initramfs-3.6.0-${bootcsum}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]