Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Feb 2018 20:23:49 +0000 (UTC)
From:      Kyle Evans <kevans@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r329406 - head/tools/boot
Message-ID:  <201802162023.w1GKNnao009094@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kevans
Date: Fri Feb 16 20:23:48 2018
New Revision: 329406
URL: https://svnweb.freebsd.org/changeset/base/329406

Log:
  Default to /tmp/loadertest for lua test scripts

Modified:
  head/tools/boot/lua-img.sh
  head/tools/boot/lua-test.sh

Modified: head/tools/boot/lua-img.sh
==============================================================================
--- head/tools/boot/lua-img.sh	Fri Feb 16 19:11:00 2018	(r329405)
+++ head/tools/boot/lua-img.sh	Fri Feb 16 20:23:48 2018	(r329406)
@@ -2,6 +2,7 @@
 # $FreeBSD$
 
 # Quick script to build a suitable /boot dir somewhere in the tree for testing.
+# dir may be passed in, will default to /tmp/loadertest if not specified
 
 die() {
     echo $*
@@ -11,7 +12,7 @@ die() {
 dir=$1
 cd $(make -V SRCTOP)
 
-[ -n "$dir" ] || die "No directory specified"
+[ -n "$dir" ] || dir=/tmp/loadertest
 
 set -e
 

Modified: head/tools/boot/lua-test.sh
==============================================================================
--- head/tools/boot/lua-test.sh	Fri Feb 16 19:11:00 2018	(r329405)
+++ head/tools/boot/lua-test.sh	Fri Feb 16 20:23:48 2018	(r329406)
@@ -12,7 +12,7 @@ obj=$(make -V .OBJDIR)
 t=$obj/userboot/test/test
 u=$obj/userboot/userboot/userboot.so
 
-[ -n "$dir" ] || die "No directory specified"
+[ -n "$dir" ] || dir=/tmp/loadertest
 [ -d "$dir" ] || die "Directory $dir doesn't exist"
 [ -f "$dir/boot/lua/loader.lua" ] || die "No boot/lua/loader.lua found"
 [ -f "$dir/boot/kernel/kernel" ] || die "No kernel to load"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201802162023.w1GKNnao009094>