|
|
ace748 |
From d2fd423a8de2cc4fa0325f5a371582f429c05a26 Mon Sep 17 00:00:00 2001
|
|
|
ace748 |
From: Harald Hoyer <harald@redhat.com>
|
|
|
ace748 |
Date: Thu, 10 Nov 2016 14:57:05 +0100
|
|
|
ace748 |
Subject: [PATCH] test: remove sudo calls
|
|
|
ace748 |
|
|
|
ace748 |
rather run:
|
|
|
ace748 |
|
|
|
ace748 |
$ sudo make check
|
|
|
ace748 |
---
|
|
|
ace748 |
test/TEST-01-BASIC/test.sh | 4 ++--
|
|
|
ace748 |
test/TEST-02-SYSTEMD/test.sh | 4 ++--
|
|
|
ace748 |
test/TEST-03-USR-MOUNT/test.sh | 4 ++--
|
|
|
ace748 |
test/TEST-04-FULL-SYSTEMD/test.sh | 2 +-
|
|
|
ace748 |
test/TEST-10-RAID/test.sh | 4 ++--
|
|
|
ace748 |
test/TEST-11-LVM/test.sh | 4 ++--
|
|
|
ace748 |
test/TEST-12-RAID-DEG/test.sh | 4 ++--
|
|
|
ace748 |
test/TEST-13-ENC-RAID-LVM/test.sh | 4 ++--
|
|
|
ace748 |
test/TEST-14-IMSM/test.sh | 4 ++--
|
|
|
ace748 |
test/TEST-15-BTRFSRAID/test.sh | 4 ++--
|
|
|
ace748 |
test/TEST-16-DMSQUASH/test.sh | 4 ++--
|
|
|
ace748 |
test/TEST-17-LVM-THIN/test.sh | 4 ++--
|
|
|
ace748 |
test/TEST-20-NFS/test.sh | 16 ++++++++--------
|
|
|
ace748 |
test/TEST-30-ISCSI/test.sh | 16 ++++++++--------
|
|
|
ace748 |
test/TEST-40-NBD/test.sh | 24 ++++++++++++------------
|
|
|
ace748 |
test/TEST-50-MULTINIC/test.sh | 12 ++++++------
|
|
|
ace748 |
test/TEST-60-MTUMAC/test.sh | 10 +++++-----
|
|
|
ace748 |
test/TEST-70-BONDBRIDGETEAMVLAN/test.sh | 10 +++++-----
|
|
|
ace748 |
test/run-qemu | 2 +-
|
|
|
ace748 |
19 files changed, 68 insertions(+), 68 deletions(-)
|
|
|
ace748 |
|
|
|
ace748 |
diff --git a/test/TEST-01-BASIC/test.sh b/test/TEST-01-BASIC/test.sh
|
|
|
1755ca |
index aef07373..97e8017e 100755
|
|
|
ace748 |
--- a/test/TEST-01-BASIC/test.sh
|
|
|
ace748 |
+++ b/test/TEST-01-BASIC/test.sh
|
|
|
ace748 |
@@ -45,7 +45,7 @@ test_setup() {
|
|
|
ace748 |
find_binary plymouth >/dev/null && inst_multiple plymouth
|
|
|
ace748 |
(cd "$initdir"; mkdir -p dev sys proc etc var/run tmp )
|
|
|
ace748 |
cp -a /etc/ld.so.conf* $initdir/etc
|
|
|
ace748 |
- sudo ldconfig -r "$initdir"
|
|
|
ace748 |
+ ldconfig -r "$initdir"
|
|
|
ace748 |
)
|
|
|
ace748 |
|
|
|
ace748 |
# second, install the files needed to make the root filesystem
|
|
|
ace748 |
@@ -85,7 +85,7 @@ test_setup() {
|
|
|
ace748 |
inst_hook emergency 000 ./hard-off.sh
|
|
|
ace748 |
inst_simple ./99-idesymlinks.rules /etc/udev/rules.d/99-idesymlinks.rules
|
|
|
ace748 |
)
|
|
|
ace748 |
- sudo $basedir/dracut.sh -l -i $TESTDIR/overlay / \
|
|
|
ace748 |
+ $basedir/dracut.sh -l -i $TESTDIR/overlay / \
|
|
|
ace748 |
-a "debug watchdog" \
|
|
|
ace748 |
-o "plymouth" \
|
|
|
ace748 |
-d "piix ide-gd_mod ata_piix ext3 sd_mod i6300esb ib700wdt" \
|
|
|
ace748 |
diff --git a/test/TEST-02-SYSTEMD/test.sh b/test/TEST-02-SYSTEMD/test.sh
|
|
|
1755ca |
index 6f33181c..2a077b04 100755
|
|
|
ace748 |
--- a/test/TEST-02-SYSTEMD/test.sh
|
|
|
ace748 |
+++ b/test/TEST-02-SYSTEMD/test.sh
|
|
|
ace748 |
@@ -45,7 +45,7 @@ test_setup() {
|
|
|
ace748 |
find_binary plymouth >/dev/null && inst_multiple plymouth
|
|
|
ace748 |
(cd "$initdir"; mkdir -p dev sys proc etc var/run tmp )
|
|
|
ace748 |
cp -a /etc/ld.so.conf* $initdir/etc
|
|
|
ace748 |
- sudo ldconfig -r "$initdir"
|
|
|
ace748 |
+ ldconfig -r "$initdir"
|
|
|
ace748 |
)
|
|
|
ace748 |
|
|
|
ace748 |
# second, install the files needed to make the root filesystem
|
|
|
ace748 |
@@ -85,7 +85,7 @@ test_setup() {
|
|
|
ace748 |
inst_hook emergency 000 ./hard-off.sh
|
|
|
ace748 |
inst_simple ./99-idesymlinks.rules /etc/udev/rules.d/99-idesymlinks.rules
|
|
|
ace748 |
)
|
|
|
ace748 |
- sudo $basedir/dracut.sh -l -i $TESTDIR/overlay / \
|
|
|
ace748 |
+ $basedir/dracut.sh -l -i $TESTDIR/overlay / \
|
|
|
ace748 |
-a "debug systemd" \
|
|
|
ace748 |
-o "network plymouth" \
|
|
|
ace748 |
-d "piix ide-gd_mod ata_piix ext3 sd_mod" \
|
|
|
ace748 |
diff --git a/test/TEST-03-USR-MOUNT/test.sh b/test/TEST-03-USR-MOUNT/test.sh
|
|
|
1755ca |
index 363f8b04..c3f810ab 100755
|
|
|
ace748 |
--- a/test/TEST-03-USR-MOUNT/test.sh
|
|
|
ace748 |
+++ b/test/TEST-03-USR-MOUNT/test.sh
|
|
|
ace748 |
@@ -72,7 +72,7 @@ test_setup() {
|
|
|
ace748 |
find_binary plymouth >/dev/null && inst_multiple plymouth
|
|
|
ace748 |
(cd "$initdir"; mkdir -p dev sys proc etc var/run tmp )
|
|
|
ace748 |
cp -a /etc/ld.so.conf* $initdir/etc
|
|
|
ace748 |
- sudo ldconfig -r "$initdir"
|
|
|
ace748 |
+ ldconfig -r "$initdir"
|
|
|
ace748 |
)
|
|
|
ace748 |
|
|
|
ace748 |
# second, install the files needed to make the root filesystem
|
|
|
ace748 |
@@ -119,7 +119,7 @@ test_setup() {
|
|
|
ace748 |
inst_hook emergency 000 ./hard-off.sh
|
|
|
ace748 |
inst_simple ./99-idesymlinks.rules /etc/udev/rules.d/99-idesymlinks.rules
|
|
|
ace748 |
)
|
|
|
ace748 |
- sudo $basedir/dracut.sh -l -i $TESTDIR/overlay / \
|
|
|
ace748 |
+ $basedir/dracut.sh -l -i $TESTDIR/overlay / \
|
|
|
ace748 |
-a "debug" \
|
|
|
ace748 |
-o "network plymouth" \
|
|
|
ace748 |
-d "piix ide-gd_mod ata_piix btrfs sd_mod i6300esb ib700wdt" \
|
|
|
ace748 |
diff --git a/test/TEST-04-FULL-SYSTEMD/test.sh b/test/TEST-04-FULL-SYSTEMD/test.sh
|
|
|
1755ca |
index 93c33890..1adb34e9 100755
|
|
|
ace748 |
--- a/test/TEST-04-FULL-SYSTEMD/test.sh
|
|
|
ace748 |
+++ b/test/TEST-04-FULL-SYSTEMD/test.sh
|
|
|
ace748 |
@@ -263,7 +263,7 @@ EOF
|
|
|
ace748 |
inst_hook emergency 000 ./hard-off.sh
|
|
|
ace748 |
inst_simple ./99-idesymlinks.rules /etc/udev/rules.d/99-idesymlinks.rules
|
|
|
ace748 |
)
|
|
|
ace748 |
- sudo $basedir/dracut.sh -l -i $TESTDIR/overlay / \
|
|
|
ace748 |
+ $basedir/dracut.sh -l -i $TESTDIR/overlay / \
|
|
|
ace748 |
-a "debug systemd" \
|
|
|
ace748 |
-I "/etc/machine-id /etc/hostname" \
|
|
|
ace748 |
-o "network plymouth lvm mdraid resume crypt i18n caps dm terminfo usrmount" \
|
|
|
ace748 |
diff --git a/test/TEST-10-RAID/test.sh b/test/TEST-10-RAID/test.sh
|
|
|
1755ca |
index 45edda2c..7f99c0e0 100755
|
|
|
ace748 |
--- a/test/TEST-10-RAID/test.sh
|
|
|
ace748 |
+++ b/test/TEST-10-RAID/test.sh
|
|
|
ace748 |
@@ -43,7 +43,7 @@ test_setup() {
|
|
|
ace748 |
inst_multiple -o /lib/systemd/systemd-shutdown
|
|
|
ace748 |
find_binary plymouth >/dev/null && inst_multiple plymouth
|
|
|
ace748 |
cp -a /etc/ld.so.conf* $initdir/etc
|
|
|
ace748 |
- sudo ldconfig -r "$initdir"
|
|
|
ace748 |
+ ldconfig -r "$initdir"
|
|
|
ace748 |
)
|
|
|
ace748 |
|
|
|
ace748 |
# second, install the files needed to make the root filesystem
|
|
|
ace748 |
@@ -88,7 +88,7 @@ test_setup() {
|
|
|
ace748 |
inst_simple ./99-idesymlinks.rules /etc/udev/rules.d/99-idesymlinks.rules
|
|
|
ace748 |
)
|
|
|
ace748 |
|
|
|
ace748 |
- sudo $basedir/dracut.sh -l -i $TESTDIR/overlay / \
|
|
|
ace748 |
+ $basedir/dracut.sh -l -i $TESTDIR/overlay / \
|
|
|
ace748 |
-o "plymouth network" \
|
|
|
ace748 |
-a "debug" \
|
|
|
ace748 |
-d "piix ide-gd_mod ata_piix ext2 sd_mod" \
|
|
|
ace748 |
diff --git a/test/TEST-11-LVM/test.sh b/test/TEST-11-LVM/test.sh
|
|
|
1755ca |
index dd1f8ead..a4ee86da 100755
|
|
|
ace748 |
--- a/test/TEST-11-LVM/test.sh
|
|
|
ace748 |
+++ b/test/TEST-11-LVM/test.sh
|
|
|
ace748 |
@@ -40,7 +40,7 @@ test_setup() {
|
|
|
ace748 |
(cd "$initdir"; mkdir -p dev sys proc etc var/run tmp )
|
|
|
ace748 |
cp -a /etc/ld.so.conf* $initdir/etc
|
|
|
ace748 |
mkdir $initdir/run
|
|
|
ace748 |
- sudo ldconfig -r "$initdir"
|
|
|
ace748 |
+ ldconfig -r "$initdir"
|
|
|
ace748 |
)
|
|
|
ace748 |
|
|
|
ace748 |
# second, install the files needed to make the root filesystem
|
|
|
ace748 |
@@ -74,7 +74,7 @@ test_setup() {
|
|
|
ace748 |
inst_hook emergency 000 ./hard-off.sh
|
|
|
ace748 |
inst_simple ./99-idesymlinks.rules /etc/udev/rules.d/99-idesymlinks.rules
|
|
|
ace748 |
)
|
|
|
ace748 |
- sudo $basedir/dracut.sh -l -i $TESTDIR/overlay / \
|
|
|
ace748 |
+ $basedir/dracut.sh -l -i $TESTDIR/overlay / \
|
|
|
ace748 |
-o "plymouth network" \
|
|
|
ace748 |
-a "debug" \
|
|
|
ace748 |
-d "piix ide-gd_mod ata_piix ext2 sd_mod" \
|
|
|
ace748 |
diff --git a/test/TEST-12-RAID-DEG/test.sh b/test/TEST-12-RAID-DEG/test.sh
|
|
|
1755ca |
index 5f9cfc56..aae5e8b4 100755
|
|
|
ace748 |
--- a/test/TEST-12-RAID-DEG/test.sh
|
|
|
ace748 |
+++ b/test/TEST-12-RAID-DEG/test.sh
|
|
|
ace748 |
@@ -81,7 +81,7 @@ test_setup() {
|
|
|
ace748 |
find_binary plymouth >/dev/null && inst_multiple plymouth
|
|
|
ace748 |
(cd "$initdir"; mkdir -p dev sys proc etc var/run tmp )
|
|
|
ace748 |
cp -a /etc/ld.so.conf* $initdir/etc
|
|
|
ace748 |
- sudo ldconfig -r "$initdir"
|
|
|
ace748 |
+ ldconfig -r "$initdir"
|
|
|
ace748 |
)
|
|
|
ace748 |
|
|
|
ace748 |
# second, install the files needed to make the root filesystem
|
|
|
ace748 |
@@ -131,7 +131,7 @@ test_setup() {
|
|
|
ace748 |
echo -n test > $initdir/etc/key
|
|
|
ace748 |
)
|
|
|
ace748 |
|
|
|
ace748 |
- sudo $basedir/dracut.sh -l -i $TESTDIR/overlay / \
|
|
|
ace748 |
+ $basedir/dracut.sh -l -i $TESTDIR/overlay / \
|
|
|
ace748 |
-o "plymouth network" \
|
|
|
ace748 |
-a "debug" \
|
|
|
ace748 |
-d "piix ide-gd_mod ata_piix ext2 sd_mod" \
|
|
|
ace748 |
diff --git a/test/TEST-13-ENC-RAID-LVM/test.sh b/test/TEST-13-ENC-RAID-LVM/test.sh
|
|
|
1755ca |
index 94801e47..8194166b 100755
|
|
|
ace748 |
--- a/test/TEST-13-ENC-RAID-LVM/test.sh
|
|
|
ace748 |
+++ b/test/TEST-13-ENC-RAID-LVM/test.sh
|
|
|
ace748 |
@@ -77,7 +77,7 @@ test_setup() {
|
|
|
ace748 |
find_binary plymouth >/dev/null && inst_multiple plymouth
|
|
|
ace748 |
(cd "$initdir"; mkdir -p dev sys proc etc var/run tmp )
|
|
|
ace748 |
cp -a /etc/ld.so.conf* $initdir/etc
|
|
|
ace748 |
- sudo ldconfig -r "$initdir"
|
|
|
ace748 |
+ ldconfig -r "$initdir"
|
|
|
ace748 |
)
|
|
|
ace748 |
|
|
|
ace748 |
# second, install the files needed to make the root filesystem
|
|
|
ace748 |
@@ -127,7 +127,7 @@ test_setup() {
|
|
|
ace748 |
done > $initdir/etc/crypttab
|
|
|
ace748 |
echo -n test > $initdir/etc/key
|
|
|
ace748 |
)
|
|
|
ace748 |
- sudo $basedir/dracut.sh -l -i $TESTDIR/overlay / \
|
|
|
ace748 |
+ $basedir/dracut.sh -l -i $TESTDIR/overlay / \
|
|
|
ace748 |
-o "plymouth network" \
|
|
|
ace748 |
-a "debug" \
|
|
|
ace748 |
-d "piix ide-gd_mod ata_piix ext2 sd_mod" \
|
|
|
ace748 |
diff --git a/test/TEST-14-IMSM/test.sh b/test/TEST-14-IMSM/test.sh
|
|
|
1755ca |
index 8e99b1f6..783ec4a5 100755
|
|
|
ace748 |
--- a/test/TEST-14-IMSM/test.sh
|
|
|
ace748 |
+++ b/test/TEST-14-IMSM/test.sh
|
|
|
ace748 |
@@ -70,7 +70,7 @@ test_setup() {
|
|
|
ace748 |
(cd "$initdir"; mkdir -p dev sys proc etc var/run tmp )
|
|
|
ace748 |
cp -a /etc/ld.so.conf* $initdir/etc
|
|
|
ace748 |
mkdir $initdir/run
|
|
|
ace748 |
- sudo ldconfig -r "$initdir"
|
|
|
ace748 |
+ ldconfig -r "$initdir"
|
|
|
ace748 |
)
|
|
|
ace748 |
|
|
|
ace748 |
# second, install the files needed to make the root filesystem
|
|
|
ace748 |
@@ -109,7 +109,7 @@ test_setup() {
|
|
|
ace748 |
inst_hook emergency 000 ./hard-off.sh
|
|
|
ace748 |
inst_simple ./99-idesymlinks.rules /etc/udev/rules.d/99-idesymlinks.rules
|
|
|
ace748 |
)
|
|
|
ace748 |
- sudo $basedir/dracut.sh -l -i $TESTDIR/overlay / \
|
|
|
ace748 |
+ $basedir/dracut.sh -l -i $TESTDIR/overlay / \
|
|
|
ace748 |
-o "plymouth network" \
|
|
|
ace748 |
-a "debug" \
|
|
|
ace748 |
-d "piix ide-gd_mod ata_piix ext2 sd_mod" \
|
|
|
ace748 |
diff --git a/test/TEST-15-BTRFSRAID/test.sh b/test/TEST-15-BTRFSRAID/test.sh
|
|
|
1755ca |
index c086677f..1e3e18c1 100755
|
|
|
ace748 |
--- a/test/TEST-15-BTRFSRAID/test.sh
|
|
|
ace748 |
+++ b/test/TEST-15-BTRFSRAID/test.sh
|
|
|
ace748 |
@@ -41,7 +41,7 @@ test_setup() {
|
|
|
ace748 |
find_binary plymouth >/dev/null && inst_multiple plymouth
|
|
|
ace748 |
(cd "$initdir"; mkdir -p dev sys proc etc var/run tmp )
|
|
|
ace748 |
cp -a /etc/ld.so.conf* $initdir/etc
|
|
|
ace748 |
- sudo ldconfig -r "$initdir"
|
|
|
ace748 |
+ ldconfig -r "$initdir"
|
|
|
ace748 |
)
|
|
|
ace748 |
|
|
|
ace748 |
# second, install the files needed to make the root filesystem
|
|
|
ace748 |
@@ -82,7 +82,7 @@ test_setup() {
|
|
|
ace748 |
inst_hook emergency 000 ./hard-off.sh
|
|
|
ace748 |
inst_simple ./99-idesymlinks.rules /etc/udev/rules.d/99-idesymlinks.rules
|
|
|
ace748 |
)
|
|
|
ace748 |
- sudo $basedir/dracut.sh -l -i $TESTDIR/overlay / \
|
|
|
ace748 |
+ $basedir/dracut.sh -l -i $TESTDIR/overlay / \
|
|
|
ace748 |
-o "plymouth network" \
|
|
|
ace748 |
-a "debug" \
|
|
|
ace748 |
-d "piix ide-gd_mod ata_piix btrfs sd_mod" \
|
|
|
ace748 |
diff --git a/test/TEST-16-DMSQUASH/test.sh b/test/TEST-16-DMSQUASH/test.sh
|
|
|
1755ca |
index e80ec5c2..6daa35e7 100755
|
|
|
ace748 |
--- a/test/TEST-16-DMSQUASH/test.sh
|
|
|
ace748 |
+++ b/test/TEST-16-DMSQUASH/test.sh
|
|
|
ace748 |
@@ -38,7 +38,7 @@ test_setup() {
|
|
|
ace748 |
|
|
|
ace748 |
dd if=/dev/zero of="$TESTDIR"/root.img count=100
|
|
|
ace748 |
|
|
|
ace748 |
- sudo $basedir/dracut.sh -l -i "$TESTDIR"/overlay / \
|
|
|
ace748 |
+ $basedir/dracut.sh -l -i "$TESTDIR"/overlay / \
|
|
|
ace748 |
-a "debug dmsquash-live" \
|
|
|
ace748 |
-d "piix ide-gd_mod ata_piix ext3 sd_mod sr_mod" \
|
|
|
ace748 |
-f "$TESTDIR"/initramfs.testing "$KVERSION" || return 1
|
|
|
ace748 |
@@ -69,7 +69,7 @@ test_setup() {
|
|
|
ace748 |
find_binary plymouth >/dev/null && inst_multiple plymouth
|
|
|
ace748 |
(cd "$initdir"; mkdir -p -- dev sys proc etc var/run tmp )
|
|
|
ace748 |
cp -a -- /etc/ld.so.conf* "$initdir"/etc
|
|
|
ace748 |
- sudo ldconfig -r "$initdir"
|
|
|
ace748 |
+ ldconfig -r "$initdir"
|
|
|
ace748 |
)
|
|
|
ace748 |
python create.py -d -c livecd-fedora-minimal.ks
|
|
|
ace748 |
return 0
|
|
|
ace748 |
diff --git a/test/TEST-17-LVM-THIN/test.sh b/test/TEST-17-LVM-THIN/test.sh
|
|
|
1755ca |
index dc6e5885..f15e1a3d 100755
|
|
|
ace748 |
--- a/test/TEST-17-LVM-THIN/test.sh
|
|
|
ace748 |
+++ b/test/TEST-17-LVM-THIN/test.sh
|
|
|
ace748 |
@@ -40,7 +40,7 @@ test_setup() {
|
|
|
ace748 |
(cd "$initdir"; mkdir -p dev sys proc etc var/run tmp )
|
|
|
ace748 |
cp -a /etc/ld.so.conf* $initdir/etc
|
|
|
ace748 |
mkdir $initdir/run
|
|
|
ace748 |
- sudo ldconfig -r "$initdir"
|
|
|
ace748 |
+ ldconfig -r "$initdir"
|
|
|
ace748 |
)
|
|
|
ace748 |
|
|
|
ace748 |
# second, install the files needed to make the root filesystem
|
|
|
ace748 |
@@ -74,7 +74,7 @@ test_setup() {
|
|
|
ace748 |
inst_hook emergency 000 ./hard-off.sh
|
|
|
ace748 |
inst_simple ./99-idesymlinks.rules /etc/udev/rules.d/99-idesymlinks.rules
|
|
|
ace748 |
)
|
|
|
ace748 |
- sudo $basedir/dracut.sh -l -i $TESTDIR/overlay / \
|
|
|
ace748 |
+ $basedir/dracut.sh -l -i $TESTDIR/overlay / \
|
|
|
ace748 |
-o "plymouth network" \
|
|
|
ace748 |
-a "debug" -I lvs \
|
|
|
ace748 |
-d "piix ide-gd_mod ata_piix ext2 sd_mod" \
|
|
|
ace748 |
diff --git a/test/TEST-20-NFS/test.sh b/test/TEST-20-NFS/test.sh
|
|
|
1755ca |
index 49dbc10e..64fc5501 100755
|
|
|
ace748 |
--- a/test/TEST-20-NFS/test.sh
|
|
|
ace748 |
+++ b/test/TEST-20-NFS/test.sh
|
|
|
ace748 |
@@ -26,7 +26,7 @@ run_server() {
|
|
|
ace748 |
-append "rd.debug loglevel=77 root=/dev/sda rootfstype=ext3 rw console=ttyS0,115200n81 selinux=0" \
|
|
|
ace748 |
-initrd $TESTDIR/initramfs.server \
|
|
|
ace748 |
-pidfile $TESTDIR/server.pid -daemonize || return 1
|
|
|
ace748 |
- sudo chmod 644 $TESTDIR/server.pid || return 1
|
|
|
ace748 |
+ chmod 644 $TESTDIR/server.pid || return 1
|
|
|
ace748 |
|
|
|
ace748 |
# Cleanup the terminal if we have one
|
|
|
ace748 |
tty -s && stty sane
|
|
|
ace748 |
@@ -185,7 +185,7 @@ test_nfsv4() {
|
|
|
ace748 |
|
|
|
ace748 |
test_run() {
|
|
|
ace748 |
if [[ -s server.pid ]]; then
|
|
|
ace748 |
- sudo kill -TERM $(cat $TESTDIR/server.pid)
|
|
|
ace748 |
+ kill -TERM $(cat $TESTDIR/server.pid)
|
|
|
ace748 |
rm -f -- $TESTDIR/server.pid
|
|
|
ace748 |
fi
|
|
|
ace748 |
|
|
|
ace748 |
@@ -200,7 +200,7 @@ test_run() {
|
|
|
ace748 |
ret=$?
|
|
|
ace748 |
|
|
|
ace748 |
if [[ -s $TESTDIR/server.pid ]]; then
|
|
|
ace748 |
- sudo kill -TERM $(cat $TESTDIR/server.pid)
|
|
|
ace748 |
+ kill -TERM $(cat $TESTDIR/server.pid)
|
|
|
ace748 |
rm -f -- $TESTDIR/server.pid
|
|
|
ace748 |
fi
|
|
|
ace748 |
|
|
|
ace748 |
@@ -212,7 +212,7 @@ test_setup() {
|
|
|
ace748 |
dd if=/dev/null of=$TESTDIR/server.ext3 bs=1M seek=60
|
|
|
ace748 |
mke2fs -j -F $TESTDIR/server.ext3
|
|
|
ace748 |
mkdir $TESTDIR/mnt
|
|
|
ace748 |
- sudo mount -o loop $TESTDIR/server.ext3 $TESTDIR/mnt
|
|
|
ace748 |
+ mount -o loop $TESTDIR/server.ext3 $TESTDIR/mnt
|
|
|
ace748 |
|
|
|
ace748 |
|
|
|
ace748 |
export kernel=$KVERSION
|
|
|
ace748 |
@@ -279,7 +279,7 @@ test_setup() {
|
|
|
ace748 |
inst /etc/group /etc/group
|
|
|
ace748 |
|
|
|
ace748 |
cp -a /etc/ld.so.conf* $initdir/etc
|
|
|
ace748 |
- sudo ldconfig -r "$initdir"
|
|
|
ace748 |
+ ldconfig -r "$initdir"
|
|
|
ace748 |
dracut_kernel_post
|
|
|
ace748 |
)
|
|
|
ace748 |
|
|
|
ace748 |
@@ -318,14 +318,14 @@ test_setup() {
|
|
|
ace748 |
inst_libdir_file -n "$_nsslibs" 'libnss_*.so*'
|
|
|
ace748 |
|
|
|
ace748 |
cp -a /etc/ld.so.conf* $initdir/etc
|
|
|
ace748 |
- sudo ldconfig -r "$initdir"
|
|
|
ace748 |
+ ldconfig -r "$initdir"
|
|
|
ace748 |
)
|
|
|
ace748 |
|
|
|
ace748 |
mkdir -p $TESTDIR/mnt/nfs/nfs3-5
|
|
|
ace748 |
mkdir -p $TESTDIR/mnt/nfs/ip/192.168.50.101
|
|
|
ace748 |
mkdir -p $TESTDIR/mnt/nfs/tftpboot/nfs4-5
|
|
|
ace748 |
|
|
|
ace748 |
- sudo umount $TESTDIR/mnt
|
|
|
ace748 |
+ umount $TESTDIR/mnt
|
|
|
ace748 |
rm -fr -- $TESTDIR/mnt
|
|
|
ace748 |
|
|
|
ace748 |
# Make an overlay with needed tools for the test harness
|
|
|
ace748 |
@@ -354,7 +354,7 @@ test_setup() {
|
|
|
ace748 |
|
|
|
ace748 |
test_cleanup() {
|
|
|
ace748 |
if [[ -s $TESTDIR/server.pid ]]; then
|
|
|
ace748 |
- sudo kill -TERM $(cat $TESTDIR/server.pid)
|
|
|
ace748 |
+ kill -TERM $(cat $TESTDIR/server.pid)
|
|
|
ace748 |
rm -f -- $TESTDIR/server.pid
|
|
|
ace748 |
fi
|
|
|
ace748 |
}
|
|
|
ace748 |
diff --git a/test/TEST-30-ISCSI/test.sh b/test/TEST-30-ISCSI/test.sh
|
|
|
1755ca |
index 5e59f0a8..62bef9cc 100755
|
|
|
ace748 |
--- a/test/TEST-30-ISCSI/test.sh
|
|
|
ace748 |
+++ b/test/TEST-30-ISCSI/test.sh
|
|
|
ace748 |
@@ -28,7 +28,7 @@ run_server() {
|
|
|
ace748 |
-append "root=/dev/sda rootfstype=ext3 rw console=ttyS0,115200n81 selinux=0 $SERVER_DEBUG" \
|
|
|
ace748 |
-initrd $TESTDIR/initramfs.server \
|
|
|
ace748 |
-pidfile $TESTDIR/server.pid -daemonize || return 1
|
|
|
ace748 |
- sudo chmod 644 $TESTDIR/server.pid || return 1
|
|
|
ace748 |
+ chmod 644 $TESTDIR/server.pid || return 1
|
|
|
ace748 |
|
|
|
ace748 |
# Cleanup the terminal if we have one
|
|
|
ace748 |
tty -s && stty sane
|
|
|
ace748 |
@@ -129,7 +129,7 @@ test_run() {
|
|
|
ace748 |
do_test_run
|
|
|
ace748 |
ret=$?
|
|
|
ace748 |
if [[ -s $TESTDIR/server.pid ]]; then
|
|
|
ace748 |
- sudo kill -TERM $(cat $TESTDIR/server.pid)
|
|
|
ace748 |
+ kill -TERM $(cat $TESTDIR/server.pid)
|
|
|
ace748 |
rm -f -- $TESTDIR/server.pid
|
|
|
ace748 |
fi
|
|
|
ace748 |
return $ret
|
|
|
ace748 |
@@ -169,7 +169,7 @@ test_setup() {
|
|
|
ace748 |
inst_simple /etc/os-release
|
|
|
ace748 |
inst ./client-init.sh /sbin/init
|
|
|
ace748 |
cp -a /etc/ld.so.conf* $initdir/etc
|
|
|
ace748 |
- sudo ldconfig -r "$initdir"
|
|
|
ace748 |
+ ldconfig -r "$initdir"
|
|
|
ace748 |
)
|
|
|
ace748 |
|
|
|
ace748 |
# second, install the files needed to make the root filesystem
|
|
|
ace748 |
@@ -216,7 +216,7 @@ test_setup() {
|
|
|
ace748 |
inst_hook emergency 000 ./hard-off.sh
|
|
|
ace748 |
inst_simple ./99-idesymlinks.rules /etc/udev/rules.d/99-idesymlinks.rules
|
|
|
ace748 |
)
|
|
|
ace748 |
- sudo $basedir/dracut.sh -l -i $TESTDIR/overlay / \
|
|
|
ace748 |
+ $basedir/dracut.sh -l -i $TESTDIR/overlay / \
|
|
|
ace748 |
-o "plymouth dmraid nfs" \
|
|
|
ace748 |
-a "debug" \
|
|
|
ace748 |
-d "af_packet piix ide-gd_mod ata_piix ext3 sd_mod" \
|
|
|
ace748 |
@@ -227,7 +227,7 @@ test_setup() {
|
|
|
ace748 |
dd if=/dev/null of=$TESTDIR/server.ext3 bs=1M seek=60
|
|
|
ace748 |
mkfs.ext3 -j -F $TESTDIR/server.ext3
|
|
|
ace748 |
mkdir $TESTDIR/mnt
|
|
|
ace748 |
- sudo mount -o loop $TESTDIR/server.ext3 $TESTDIR/mnt
|
|
|
ace748 |
+ mount -o loop $TESTDIR/server.ext3 $TESTDIR/mnt
|
|
|
ace748 |
|
|
|
ace748 |
kernel=$KVERSION
|
|
|
ace748 |
(
|
|
|
ace748 |
@@ -259,11 +259,11 @@ test_setup() {
|
|
|
ace748 |
inst /etc/group /etc/group
|
|
|
ace748 |
|
|
|
ace748 |
cp -a /etc/ld.so.conf* $initdir/etc
|
|
|
ace748 |
- sudo ldconfig -r "$initdir"
|
|
|
ace748 |
+ ldconfig -r "$initdir"
|
|
|
ace748 |
dracut_kernel_post
|
|
|
ace748 |
)
|
|
|
ace748 |
|
|
|
ace748 |
- sudo umount $TESTDIR/mnt
|
|
|
ace748 |
+ umount $TESTDIR/mnt
|
|
|
ace748 |
rm -fr -- $TESTDIR/mnt
|
|
|
ace748 |
|
|
|
ace748 |
# Make server's dracut image
|
|
|
ace748 |
@@ -277,7 +277,7 @@ test_setup() {
|
|
|
ace748 |
|
|
|
ace748 |
test_cleanup() {
|
|
|
ace748 |
if [[ -s $TESTDIR/server.pid ]]; then
|
|
|
ace748 |
- sudo kill -TERM $(cat $TESTDIR/server.pid)
|
|
|
ace748 |
+ kill -TERM $(cat $TESTDIR/server.pid)
|
|
|
ace748 |
rm -f -- $TESTDIR/server.pid
|
|
|
ace748 |
fi
|
|
|
ace748 |
}
|
|
|
ace748 |
diff --git a/test/TEST-40-NBD/test.sh b/test/TEST-40-NBD/test.sh
|
|
|
1755ca |
index 848a103f..73123c22 100755
|
|
|
ace748 |
--- a/test/TEST-40-NBD/test.sh
|
|
|
ace748 |
+++ b/test/TEST-40-NBD/test.sh
|
|
|
ace748 |
@@ -26,7 +26,7 @@ run_server() {
|
|
|
ace748 |
-kernel /boot/vmlinuz-$KVERSION \
|
|
|
ace748 |
-append "root=/dev/sda rootfstype=ext2 rw quiet console=ttyS0,115200n81 selinux=0" \
|
|
|
ace748 |
-initrd $TESTDIR/initramfs.server -pidfile $TESTDIR/server.pid -daemonize || return 1
|
|
|
ace748 |
- sudo chmod 644 $TESTDIR/server.pid || return 1
|
|
|
ace748 |
+ chmod 644 $TESTDIR/server.pid || return 1
|
|
|
ace748 |
|
|
|
ace748 |
# Cleanup the terminal if we have one
|
|
|
ace748 |
tty -s && stty sane
|
|
|
ace748 |
@@ -179,7 +179,7 @@ client_run() {
|
|
|
ace748 |
"root=LABEL=dracut rd.luks.uuid=$ID_FS_UUID rd.lv.vg=dracut netroot=dhcp" || return 1
|
|
|
ace748 |
|
|
|
ace748 |
if [[ -s server.pid ]]; then
|
|
|
ace748 |
- sudo kill -TERM $(cat $TESTDIR/server.pid)
|
|
|
ace748 |
+ kill -TERM $(cat $TESTDIR/server.pid)
|
|
|
ace748 |
rm -f -- $TESTDIR/server.pid
|
|
|
ace748 |
fi
|
|
|
ace748 |
|
|
|
ace748 |
@@ -207,7 +207,7 @@ make_encrypted_root() {
|
|
|
ace748 |
inst_simple /etc/os-release
|
|
|
ace748 |
find_binary plymouth >/dev/null && inst_multiple plymouth
|
|
|
ace748 |
cp -a /etc/ld.so.conf* $initdir/etc
|
|
|
ace748 |
- sudo ldconfig -r "$initdir"
|
|
|
ace748 |
+ ldconfig -r "$initdir"
|
|
|
ace748 |
)
|
|
|
ace748 |
|
|
|
ace748 |
# second, install the files needed to make the root filesystem
|
|
|
ace748 |
@@ -247,7 +247,7 @@ make_client_root() {
|
|
|
ace748 |
dd if=/dev/null of=$TESTDIR/nbd.ext2 bs=1M seek=30
|
|
|
ace748 |
mke2fs -F -j $TESTDIR/nbd.ext2
|
|
|
ace748 |
mkdir $TESTDIR/mnt
|
|
|
ace748 |
- sudo mount -o loop $TESTDIR/nbd.ext2 $TESTDIR/mnt
|
|
|
ace748 |
+ mount -o loop $TESTDIR/nbd.ext2 $TESTDIR/mnt
|
|
|
ace748 |
|
|
|
ace748 |
kernel=$KVERSION
|
|
|
ace748 |
(
|
|
|
ace748 |
@@ -271,10 +271,10 @@ make_client_root() {
|
|
|
ace748 |
inst $i
|
|
|
ace748 |
done
|
|
|
ace748 |
cp -a /etc/ld.so.conf* $initdir/etc
|
|
|
ace748 |
- sudo ldconfig -r "$initdir"
|
|
|
ace748 |
+ ldconfig -r "$initdir"
|
|
|
ace748 |
)
|
|
|
ace748 |
|
|
|
ace748 |
- sudo umount $TESTDIR/mnt
|
|
|
ace748 |
+ umount $TESTDIR/mnt
|
|
|
ace748 |
rm -fr -- $TESTDIR/mnt
|
|
|
ace748 |
}
|
|
|
ace748 |
|
|
|
ace748 |
@@ -282,7 +282,7 @@ make_server_root() {
|
|
|
ace748 |
dd if=/dev/null of=$TESTDIR/server.ext2 bs=1M seek=30
|
|
|
ace748 |
mke2fs -F $TESTDIR/server.ext2
|
|
|
ace748 |
mkdir $TESTDIR/mnt
|
|
|
ace748 |
- sudo mount -o loop $TESTDIR/server.ext2 $TESTDIR/mnt
|
|
|
ace748 |
+ mount -o loop $TESTDIR/server.ext2 $TESTDIR/mnt
|
|
|
ace748 |
|
|
|
ace748 |
kernel=$KVERSION
|
|
|
ace748 |
(
|
|
|
ace748 |
@@ -316,10 +316,10 @@ make_server_root() {
|
|
|
ace748 |
done
|
|
|
ace748 |
|
|
|
ace748 |
cp -a /etc/ld.so.conf* $initdir/etc
|
|
|
ace748 |
- sudo ldconfig -r "$initdir"
|
|
|
ace748 |
+ ldconfig -r "$initdir"
|
|
|
ace748 |
)
|
|
|
ace748 |
|
|
|
ace748 |
- sudo umount $TESTDIR/mnt
|
|
|
ace748 |
+ umount $TESTDIR/mnt
|
|
|
ace748 |
rm -fr -- $TESTDIR/mnt
|
|
|
ace748 |
}
|
|
|
ace748 |
|
|
|
ace748 |
@@ -347,12 +347,12 @@ test_setup() {
|
|
|
ace748 |
echo -n test > $initdir/etc/key
|
|
|
ace748 |
)
|
|
|
ace748 |
|
|
|
ace748 |
- sudo $basedir/dracut.sh -l -i $TESTDIR/overlay / \
|
|
|
ace748 |
+ $basedir/dracut.sh -l -i $TESTDIR/overlay / \
|
|
|
ace748 |
-m "udev-rules rootfs-block fs-lib base debug kernel-modules" \
|
|
|
ace748 |
-d "af_packet piix ide-gd_mod ata_piix ext2 ext3 sd_mod e1000" \
|
|
|
ace748 |
-f $TESTDIR/initramfs.server $KVERSION || return 1
|
|
|
ace748 |
|
|
|
ace748 |
- sudo $basedir/dracut.sh -l -i $TESTDIR/overlay / \
|
|
|
ace748 |
+ $basedir/dracut.sh -l -i $TESTDIR/overlay / \
|
|
|
ace748 |
-o "plymouth" \
|
|
|
ace748 |
-a "debug watchdog" \
|
|
|
ace748 |
-d "af_packet piix ide-gd_mod ata_piix ext2 ext3 sd_mod e1000 i6300esb ib700wdt" \
|
|
|
ace748 |
@@ -361,7 +361,7 @@ test_setup() {
|
|
|
ace748 |
|
|
|
ace748 |
kill_server() {
|
|
|
ace748 |
if [[ -s $TESTDIR/server.pid ]]; then
|
|
|
ace748 |
- sudo kill -TERM $(cat $TESTDIR/server.pid)
|
|
|
ace748 |
+ kill -TERM $(cat $TESTDIR/server.pid)
|
|
|
ace748 |
rm -f -- $TESTDIR/server.pid
|
|
|
ace748 |
fi
|
|
|
ace748 |
}
|
|
|
ace748 |
diff --git a/test/TEST-50-MULTINIC/test.sh b/test/TEST-50-MULTINIC/test.sh
|
|
|
1755ca |
index 05273be7..642a7486 100755
|
|
|
ace748 |
--- a/test/TEST-50-MULTINIC/test.sh
|
|
|
ace748 |
+++ b/test/TEST-50-MULTINIC/test.sh
|
|
|
ace748 |
@@ -26,7 +26,7 @@ run_server() {
|
|
|
ace748 |
-append "loglevel=7 root=/dev/sda rootfstype=ext3 rw console=ttyS0,115200n81 selinux=0" \
|
|
|
ace748 |
-initrd "$TESTDIR"/initramfs.server \
|
|
|
ace748 |
-pidfile "$TESTDIR"/server.pid -daemonize || return 1
|
|
|
ace748 |
- sudo chmod 644 -- "$TESTDIR"/server.pid || return 1
|
|
|
ace748 |
+ chmod 644 -- "$TESTDIR"/server.pid || return 1
|
|
|
ace748 |
|
|
|
ace748 |
# Cleanup the terminal if we have one
|
|
|
ace748 |
tty -s && stty sane
|
|
|
ace748 |
@@ -159,7 +159,7 @@ test_setup() {
|
|
|
ace748 |
dd if=/dev/null of="$TESTDIR"/server.ext3 bs=1M seek=60
|
|
|
ace748 |
mke2fs -j -F -- "$TESTDIR"/server.ext3
|
|
|
ace748 |
mkdir -- "$TESTDIR"/mnt
|
|
|
ace748 |
- sudo mount -o loop -- "$TESTDIR"/server.ext3 "$TESTDIR"/mnt
|
|
|
ace748 |
+ mount -o loop -- "$TESTDIR"/server.ext3 "$TESTDIR"/mnt
|
|
|
ace748 |
|
|
|
ace748 |
(
|
|
|
ace748 |
export initdir="$TESTDIR"/mnt
|
|
|
ace748 |
@@ -222,7 +222,7 @@ test_setup() {
|
|
|
ace748 |
inst /etc/group /etc/group
|
|
|
ace748 |
|
|
|
ace748 |
cp -a -- /etc/ld.so.conf* "$initdir"/etc
|
|
|
ace748 |
- sudo ldconfig -r "$initdir"
|
|
|
ace748 |
+ ldconfig -r "$initdir"
|
|
|
ace748 |
dracut_kernel_post
|
|
|
ace748 |
)
|
|
|
ace748 |
|
|
|
ace748 |
@@ -260,10 +260,10 @@ test_setup() {
|
|
|
ace748 |
inst_libdir_file -n "$_nsslibs" 'libnss_*.so*'
|
|
|
ace748 |
|
|
|
ace748 |
cp -a -- /etc/ld.so.conf* "$initdir"/etc
|
|
|
ace748 |
- sudo ldconfig -r "$initdir"
|
|
|
ace748 |
+ ldconfig -r "$initdir"
|
|
|
ace748 |
)
|
|
|
ace748 |
|
|
|
ace748 |
- sudo umount "$TESTDIR"/mnt
|
|
|
ace748 |
+ umount "$TESTDIR"/mnt
|
|
|
ace748 |
rm -fr -- "$TESTDIR"/mnt
|
|
|
ace748 |
|
|
|
ace748 |
# Make an overlay with needed tools for the test harness
|
|
|
ace748 |
@@ -291,7 +291,7 @@ test_setup() {
|
|
|
ace748 |
|
|
|
ace748 |
kill_server() {
|
|
|
ace748 |
if [[ -s "$TESTDIR"/server.pid ]]; then
|
|
|
ace748 |
- sudo kill -TERM -- $(cat "$TESTDIR"/server.pid)
|
|
|
ace748 |
+ kill -TERM -- $(cat "$TESTDIR"/server.pid)
|
|
|
ace748 |
rm -f -- "$TESTDIR"/server.pid
|
|
|
ace748 |
fi
|
|
|
ace748 |
}
|
|
|
ace748 |
diff --git a/test/TEST-60-MTUMAC/test.sh b/test/TEST-60-MTUMAC/test.sh
|
|
|
1755ca |
index 7633ac13..b70e3161 100755
|
|
|
ace748 |
--- a/test/TEST-60-MTUMAC/test.sh
|
|
|
ace748 |
+++ b/test/TEST-60-MTUMAC/test.sh
|
|
|
ace748 |
@@ -25,7 +25,7 @@ run_server() {
|
|
|
ace748 |
-append "loglevel=7 root=/dev/sda rootfstype=ext3 rw console=ttyS0,115200n81 selinux=0" \
|
|
|
ace748 |
-initrd "$TESTDIR"/initramfs.server \
|
|
|
ace748 |
-pidfile "$TESTDIR"/server.pid -daemonize || return 1
|
|
|
ace748 |
- sudo chmod 644 -- "$TESTDIR"/server.pid || return 1
|
|
|
ace748 |
+ chmod 644 -- "$TESTDIR"/server.pid || return 1
|
|
|
ace748 |
|
|
|
ace748 |
# Cleanup the terminal if we have one
|
|
|
ace748 |
tty -s && stty sane
|
|
|
ace748 |
@@ -136,7 +136,7 @@ test_setup() {
|
|
|
ace748 |
dd if=/dev/null of="$TESTDIR"/server.ext3 bs=1M seek=60
|
|
|
ace748 |
mke2fs -j -F -- "$TESTDIR"/server.ext3
|
|
|
ace748 |
mkdir -- "$TESTDIR"/mnt
|
|
|
ace748 |
- sudo mount -o loop -- "$TESTDIR"/server.ext3 "$TESTDIR"/mnt
|
|
|
ace748 |
+ mount -o loop -- "$TESTDIR"/server.ext3 "$TESTDIR"/mnt
|
|
|
ace748 |
|
|
|
ace748 |
(
|
|
|
ace748 |
export initdir="$TESTDIR"/mnt
|
|
|
ace748 |
@@ -237,10 +237,10 @@ test_setup() {
|
|
|
ace748 |
inst_libdir_file -n "$_nsslibs" 'libnss_*.so*'
|
|
|
ace748 |
|
|
|
ace748 |
cp -a -- /etc/ld.so.conf* "$initdir"/etc
|
|
|
ace748 |
- sudo ldconfig -r "$initdir"
|
|
|
ace748 |
+ ldconfig -r "$initdir"
|
|
|
ace748 |
)
|
|
|
ace748 |
|
|
|
ace748 |
- sudo umount "$TESTDIR"/mnt
|
|
|
ace748 |
+ umount "$TESTDIR"/mnt
|
|
|
ace748 |
rm -fr -- "$TESTDIR"/mnt
|
|
|
ace748 |
|
|
|
ace748 |
# Make an overlay with needed tools for the test harness
|
|
|
ace748 |
@@ -270,7 +270,7 @@ test_setup() {
|
|
|
ace748 |
|
|
|
ace748 |
kill_server() {
|
|
|
ace748 |
if [[ -s "$TESTDIR"/server.pid ]]; then
|
|
|
ace748 |
- sudo kill -TERM -- $(cat "$TESTDIR"/server.pid)
|
|
|
ace748 |
+ kill -TERM -- $(cat "$TESTDIR"/server.pid)
|
|
|
ace748 |
rm -f -- "$TESTDIR"/server.pid
|
|
|
ace748 |
fi
|
|
|
ace748 |
}
|
|
|
ace748 |
diff --git a/test/TEST-70-BONDBRIDGETEAMVLAN/test.sh b/test/TEST-70-BONDBRIDGETEAMVLAN/test.sh
|
|
|
1755ca |
index 54ceb9e1..dcf9d5cf 100755
|
|
|
ace748 |
--- a/test/TEST-70-BONDBRIDGETEAMVLAN/test.sh
|
|
|
ace748 |
+++ b/test/TEST-70-BONDBRIDGETEAMVLAN/test.sh
|
|
|
ace748 |
@@ -32,7 +32,7 @@ run_server() {
|
|
|
ace748 |
-append "loglevel=7 root=/dev/sda rootfstype=ext3 rw console=ttyS0,115200n81 selinux=0" \
|
|
|
ace748 |
-initrd "$TESTDIR"/initramfs.server \
|
|
|
ace748 |
-pidfile "$TESTDIR"/server.pid -daemonize || return 1
|
|
|
ace748 |
- sudo chmod 644 -- "$TESTDIR"/server.pid || return 1
|
|
|
ace748 |
+ chmod 644 -- "$TESTDIR"/server.pid || return 1
|
|
|
ace748 |
|
|
|
ace748 |
# Cleanup the terminal if we have one
|
|
|
ace748 |
tty -s && stty sane
|
|
|
ace748 |
@@ -162,7 +162,7 @@ test_setup() {
|
|
|
ace748 |
dd if=/dev/null of="$TESTDIR"/server.ext3 bs=1M seek=60
|
|
|
ace748 |
mke2fs -j -F -- "$TESTDIR"/server.ext3
|
|
|
ace748 |
mkdir -- "$TESTDIR"/mnt
|
|
|
ace748 |
- sudo mount -o loop -- "$TESTDIR"/server.ext3 "$TESTDIR"/mnt
|
|
|
ace748 |
+ mount -o loop -- "$TESTDIR"/server.ext3 "$TESTDIR"/mnt
|
|
|
ace748 |
|
|
|
ace748 |
(
|
|
|
ace748 |
export initdir="$TESTDIR"/mnt
|
|
|
ace748 |
@@ -263,10 +263,10 @@ test_setup() {
|
|
|
ace748 |
inst_libdir_file -n "$_nsslibs" 'libnss_*.so*'
|
|
|
ace748 |
|
|
|
ace748 |
cp -a -- /etc/ld.so.conf* "$initdir"/etc
|
|
|
ace748 |
- sudo ldconfig -r "$initdir"
|
|
|
ace748 |
+ ldconfig -r "$initdir"
|
|
|
ace748 |
)
|
|
|
ace748 |
|
|
|
ace748 |
- sudo umount "$TESTDIR"/mnt
|
|
|
ace748 |
+ umount "$TESTDIR"/mnt
|
|
|
ace748 |
rm -fr -- "$TESTDIR"/mnt
|
|
|
ace748 |
|
|
|
ace748 |
# Make an overlay with needed tools for the test harness
|
|
|
ace748 |
@@ -296,7 +296,7 @@ test_setup() {
|
|
|
ace748 |
|
|
|
ace748 |
kill_server() {
|
|
|
ace748 |
if [[ -s "$TESTDIR"/server.pid ]]; then
|
|
|
ace748 |
- sudo kill -TERM -- $(cat "$TESTDIR"/server.pid)
|
|
|
ace748 |
+ kill -TERM -- $(cat "$TESTDIR"/server.pid)
|
|
|
ace748 |
rm -f -- "$TESTDIR"/server.pid
|
|
|
ace748 |
fi
|
|
|
ace748 |
}
|
|
|
ace748 |
diff --git a/test/run-qemu b/test/run-qemu
|
|
|
1755ca |
index 00c2f6a8..07ce4a59 100755
|
|
|
ace748 |
--- a/test/run-qemu
|
|
|
ace748 |
+++ b/test/run-qemu
|
|
|
ace748 |
@@ -25,4 +25,4 @@ else
|
|
|
ace748 |
VMLINUZ="/boot/vmlinuz-${KVERSION}"
|
|
|
ace748 |
fi
|
|
|
ace748 |
|
|
|
ace748 |
-exec sudo $BIN $ARGS -kernel $VMLINUZ "$@"
|
|
|
ace748 |
+exec $BIN $ARGS -kernel $VMLINUZ "$@"
|