]> code.ossystems Code Review - openembedded-core.git/commitdiff
quilt: run-ptest remove Interactive Input
authorChangqing Li <changqing.li@windriver.com>
Mon, 24 Jun 2019 06:41:09 +0000 (14:41 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 27 Jun 2019 10:14:02 +0000 (11:14 +0100)
adduser in busybox and adduser under meta-openembeded have different
behavior, adduser under meta-openembeded need Interactive Input like
below if you manually run ptest.

Enter the new value, or press ENTER for the default
Full Name []:
Room Number []:
        ...

remove the "Interactive Input" by add --gecos "" to align the behavior
also it is better for automation without interactive input

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/quilt/quilt/run-ptest

index 4b808aee4fa1589f69afb0ae97bfc6fc7062f2b1..d2de5c855a353737e543a1b3ecb83d15922b1836 100755 (executable)
@@ -2,7 +2,7 @@
 
 THIS_SH=/bin/sh
 ln -sf /bin/ed /usr/bin/ed
-/usr/sbin/adduser --disabled-password quilttest
+/usr/sbin/adduser --disabled-password --gecos "" quilttest
 su -c "${THIS_SH} ./test.sh" quilttest
 /usr/sbin/deluser quilttest
 rm -f /usr/bin/ed