* [LTP] [PATCH] runltp: suppress the out message when creating loop device
@ 2013-11-24 10:56 Wanlong Gao
2013-11-24 17:15 ` Mike Frysinger
0 siblings, 1 reply; 3+ messages in thread
From: Wanlong Gao @ 2013-11-24 10:56 UTC (permalink / raw)
To: LTP
Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
---
runltp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/runltp b/runltp
index 63c625f..e6fc34a 100755
--- a/runltp
+++ b/runltp
@@ -956,7 +956,7 @@ main()
create_block()
{
#create a block device
- dd if=/dev/zero of=${TMP}/test.img bs=1kB count=20480
+ dd if=/dev/zero of=${TMP}/test.img bs=1kB count=20480 &>/dev/null
if [ $? -ne 0 ]; then
echo "Failed to create loopback device image, please check disk space and re-run"
return 1
--
1.8.5.rc3
------------------------------------------------------------------------------
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing
conversations that shape the rapidly evolving mobile landscape. Sign up now.
http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [LTP] [PATCH] runltp: suppress the out message when creating loop device
2013-11-24 10:56 [LTP] [PATCH] runltp: suppress the out message when creating loop device Wanlong Gao
@ 2013-11-24 17:15 ` Mike Frysinger
2013-11-25 0:31 ` Wanlong Gao
0 siblings, 1 reply; 3+ messages in thread
From: Mike Frysinger @ 2013-11-24 17:15 UTC (permalink / raw)
To: ltp-list
[-- Attachment #1.1: Type: Text/Plain, Size: 192 bytes --]
On Sunday 24 November 2013 05:56:01 Wanlong Gao wrote:
> + dd if=/dev/zero of=${TMP}/test.img bs=1kB count=20480 &>/dev/null
that's a bashism. you have to use:
... >/dev/null 2>&1
-mike
[-- Attachment #1.2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
[-- Attachment #2: Type: text/plain, Size: 427 bytes --]
------------------------------------------------------------------------------
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing
conversations that shape the rapidly evolving mobile landscape. Sign up now.
http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
[-- Attachment #3: Type: text/plain, Size: 155 bytes --]
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [LTP] [PATCH] runltp: suppress the out message when creating loop device
2013-11-24 17:15 ` Mike Frysinger
@ 2013-11-25 0:31 ` Wanlong Gao
0 siblings, 0 replies; 3+ messages in thread
From: Wanlong Gao @ 2013-11-25 0:31 UTC (permalink / raw)
To: Mike Frysinger; +Cc: ltp-list
On 11/25/2013 01:15 AM, Mike Frysinger wrote:
> On Sunday 24 November 2013 05:56:01 Wanlong Gao wrote:
>> + dd if=/dev/zero of=${TMP}/test.img bs=1kB count=20480 &>/dev/null
>
> that's a bashism. you have to use:
> ... >/dev/null 2>&1
Oops, thank you.
Wanlong Gao
> -mike
>
------------------------------------------------------------------------------
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing
conversations that shape the rapidly evolving mobile landscape. Sign up now.
http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-11-25 1:15 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-24 10:56 [LTP] [PATCH] runltp: suppress the out message when creating loop device Wanlong Gao
2013-11-24 17:15 ` Mike Frysinger
2013-11-25 0:31 ` Wanlong Gao
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox