diff options
Diffstat (limited to 'lib')
| -rwxr-xr-x | lib/testrunner | 6 | ||||
| -rw-r--r-- | lib/util.sh | 7 |
2 files changed, 11 insertions, 2 deletions
diff --git a/lib/testrunner b/lib/testrunner index 362137b..f9012a2 100755 --- a/lib/testrunner +++ b/lib/testrunner @@ -23,13 +23,15 @@ ln -sf /host/$home $home ktest_no_cleanup_tmpdir=1 -ln -sf "/host/$ktest_kernel_binary/lib/modules" /lib/modules -depmod -a +log_verbose "Testrunner starting" mkdir -p /root/.ssh cat $home/.ssh/id*.pub > /root/.ssh/authorized_keys chmod 600 /root/.ssh/authorized_keys +ln -sf "/host/$ktest_kernel_binary/lib/modules" /lib/modules +run_quiet depmod depmod -a + dmesg --console-on dmesg --console-level 8 diff --git a/lib/util.sh b/lib/util.sh index 7fc1073..c894304 100644 --- a/lib/util.sh +++ b/lib/util.sh @@ -171,6 +171,13 @@ join_by() echo "$*" } +log_verbose() +{ + if [[ $ktest_verbose != 0 ]]; then + echo "$@" + fi +} + run_quiet() { local msg=$1 |
