* [LTP] [PATCHv2 0/2] Rework to printf and added required import
@ 2013-08-29 13:55 Anders Roxell
2013-08-29 13:55 ` [LTP] [PATCH 1/2] realtime parser: remove unused and depricated imports Anders Roxell
` (3 more replies)
0 siblings, 4 replies; 8+ messages in thread
From: Anders Roxell @ 2013-08-29 13:55 UTC (permalink / raw)
To: ltp-list; +Cc: patches
Hi,
Rewoked to printf and added required import
/Anders
Anders Roxell (2):
realtime parser: remove unused and depricated imports
runltp: rework echo -n to printf POSIX-compliant
runltp | 15 +++++----------
testcases/realtime/scripts/parser.py | 2 +-
2 files changed, 6 insertions(+), 11 deletions(-)
--
1.8.1.2
------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&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] 8+ messages in thread
* [LTP] [PATCH 1/2] realtime parser: remove unused and depricated imports
2013-08-29 13:55 [LTP] [PATCHv2 0/2] Rework to printf and added required import Anders Roxell
@ 2013-08-29 13:55 ` Anders Roxell
2013-09-02 16:37 ` chrubis
2013-08-29 13:55 ` [LTP] [PATCH 2/2] runltp: rework echo -n to printf POSIX-compliant Anders Roxell
` (2 subsequent siblings)
3 siblings, 1 reply; 8+ messages in thread
From: Anders Roxell @ 2013-08-29 13:55 UTC (permalink / raw)
To: ltp-list; +Cc: patches
Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
---
testcases/realtime/scripts/parser.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/testcases/realtime/scripts/parser.py b/testcases/realtime/scripts/parser.py
index b90233c..6b2dc73 100644
--- a/testcases/realtime/scripts/parser.py
+++ b/testcases/realtime/scripts/parser.py
@@ -26,7 +26,7 @@
## ##
################################################################################
-import sys,os,string,re
+import sys
class Log:
def __init__(self,filename):
--
1.8.1.2
------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&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] 8+ messages in thread
* [LTP] [PATCH 2/2] runltp: rework echo -n to printf POSIX-compliant
2013-08-29 13:55 [LTP] [PATCHv2 0/2] Rework to printf and added required import Anders Roxell
2013-08-29 13:55 ` [LTP] [PATCH 1/2] realtime parser: remove unused and depricated imports Anders Roxell
@ 2013-08-29 13:55 ` Anders Roxell
2013-09-02 16:38 ` chrubis
2013-09-02 14:45 ` [LTP] [PATCHv2 0/2] Rework to printf and added required import Anders Roxell
2013-09-03 7:42 ` [LTP] [PATCHv3] runltp: rework echo -n to printf POSIX-compliant Anders Roxell
3 siblings, 1 reply; 8+ messages in thread
From: Anders Roxell @ 2013-08-29 13:55 UTC (permalink / raw)
To: ltp-list; +Cc: patches
Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
---
runltp | 15 +++++----------
1 file changed, 5 insertions(+), 10 deletions(-)
diff --git a/runltp b/runltp
index a419bf8..eb8e0c0 100755
--- a/runltp
+++ b/runltp
@@ -537,18 +537,13 @@ main()
{
[ -z "$RHOST" ] && \
{
- echo \
- "INFO: Enter RHOST = 'name of the remote host machine'"
- echo -n "-> "
+ printf "INFO: Enter RHOST = 'name of the remote host machine'\n-> "
read RHOST
}
[ -z "$PASSWD" ] && \
{
- echo " "
- echo \
- "INFO: Enter PASSWD = 'root passwd of the remote host machine'"
- echo -n "-> "
+ printf "\nINFO: Enter PASSWD = 'root passwd of the remote host machine'\n-> "
read PASSWD
}
export RHOST=$RHOST
@@ -733,15 +728,15 @@ main()
#$PAN_COMMAND #Duplicated code here, because otherwise if we fail, only "PAN_COMMAND" gets output
## Display the Output/Log/Failed/HTML file names here
- echo -e "LOG File: \c"
+ printf "LOG File: "
echo $LOGFILE | cut -b4-
if [ "$OUTPUTFILE" ]; then
- echo -e "OUTPUT File: \c"
+ printf "OUTPUT File: "
echo $OUTPUTFILE | cut -b4-
fi
- echo -e "FAILED COMMAND File: \c"
+ printf "FAILED COMMAND File: "
echo $FAILCMDFILE | cut -b4-
if [ "$HTMLFILE" ]; then
--
1.8.1.2
------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&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] 8+ messages in thread
* Re: [LTP] [PATCHv2 0/2] Rework to printf and added required import
2013-08-29 13:55 [LTP] [PATCHv2 0/2] Rework to printf and added required import Anders Roxell
2013-08-29 13:55 ` [LTP] [PATCH 1/2] realtime parser: remove unused and depricated imports Anders Roxell
2013-08-29 13:55 ` [LTP] [PATCH 2/2] runltp: rework echo -n to printf POSIX-compliant Anders Roxell
@ 2013-09-02 14:45 ` Anders Roxell
2013-09-03 7:42 ` [LTP] [PATCHv3] runltp: rework echo -n to printf POSIX-compliant Anders Roxell
3 siblings, 0 replies; 8+ messages in thread
From: Anders Roxell @ 2013-09-02 14:45 UTC (permalink / raw)
To: ltp-list; +Cc: patches
On 2013-08-29 15:55, Anders Roxell wrote:
> Hi,
>
> Rewoked to printf and added required import
>
> /Anders
>
> Anders Roxell (2):
> realtime parser: remove unused and depricated imports
> runltp: rework echo -n to printf POSIX-compliant
>
> runltp | 15 +++++----------
> testcases/realtime/scripts/parser.py | 2 +-
> 2 files changed, 6 insertions(+), 11 deletions(-)
>
> --
> 1.8.1.2
>
Ping.
/Anders
------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&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] 8+ messages in thread
* Re: [LTP] [PATCH 1/2] realtime parser: remove unused and depricated imports
2013-08-29 13:55 ` [LTP] [PATCH 1/2] realtime parser: remove unused and depricated imports Anders Roxell
@ 2013-09-02 16:37 ` chrubis
0 siblings, 0 replies; 8+ messages in thread
From: chrubis @ 2013-09-02 16:37 UTC (permalink / raw)
To: Anders Roxell; +Cc: ltp-list, patches
Hi!
> Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
> ---
> testcases/realtime/scripts/parser.py | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/testcases/realtime/scripts/parser.py b/testcases/realtime/scripts/parser.py
> index b90233c..6b2dc73 100644
> --- a/testcases/realtime/scripts/parser.py
> +++ b/testcases/realtime/scripts/parser.py
> @@ -26,7 +26,7 @@
> ## ##
> ################################################################################
>
> -import sys,os,string,re
> +import sys
Pushed, thanks.
--
Cyril Hrubis
chrubis@suse.cz
------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&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] 8+ messages in thread
* Re: [LTP] [PATCH 2/2] runltp: rework echo -n to printf POSIX-compliant
2013-08-29 13:55 ` [LTP] [PATCH 2/2] runltp: rework echo -n to printf POSIX-compliant Anders Roxell
@ 2013-09-02 16:38 ` chrubis
0 siblings, 0 replies; 8+ messages in thread
From: chrubis @ 2013-09-02 16:38 UTC (permalink / raw)
To: Anders Roxell; +Cc: ltp-list, patches
Hi!
> Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
> ---
> runltp | 15 +++++----------
> 1 file changed, 5 insertions(+), 10 deletions(-)
>
> diff --git a/runltp b/runltp
> index a419bf8..eb8e0c0 100755
> --- a/runltp
> +++ b/runltp
> @@ -537,18 +537,13 @@ main()
> {
> [ -z "$RHOST" ] && \
> {
> - echo \
> - "INFO: Enter RHOST = 'name of the remote host machine'"
> - echo -n "-> "
> + printf "INFO: Enter RHOST = 'name of the remote host machine'\n-> "
Please do not add lines that are over 80 characters.
--
Cyril Hrubis
chrubis@suse.cz
------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&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] 8+ messages in thread
* [LTP] [PATCHv3] runltp: rework echo -n to printf POSIX-compliant
2013-08-29 13:55 [LTP] [PATCHv2 0/2] Rework to printf and added required import Anders Roxell
` (2 preceding siblings ...)
2013-09-02 14:45 ` [LTP] [PATCHv2 0/2] Rework to printf and added required import Anders Roxell
@ 2013-09-03 7:42 ` Anders Roxell
2013-09-03 11:38 ` chrubis
3 siblings, 1 reply; 8+ messages in thread
From: Anders Roxell @ 2013-09-03 7:42 UTC (permalink / raw)
To: ltp-list; +Cc: patches
Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
---
runltp | 18 ++++++++----------
1 file changed, 8 insertions(+), 10 deletions(-)
diff --git a/runltp b/runltp
index a419bf8..e86f5c7 100755
--- a/runltp
+++ b/runltp
@@ -537,18 +537,16 @@ main()
{
[ -z "$RHOST" ] && \
{
- echo \
- "INFO: Enter RHOST = 'name of the remote host machine'"
- echo -n "-> "
+ printf "INFO: Enter RHOST = 'name of the remote host machine'"
+ printf "\n-> "
read RHOST
}
[ -z "$PASSWD" ] && \
{
- echo " "
- echo \
- "INFO: Enter PASSWD = 'root passwd of the remote host machine'"
- echo -n "-> "
+ printf "\nINFO: "
+ printf "Enter PASSWD = 'root passwd of the remote host machine'"
+ printf "\n-> "
read PASSWD
}
export RHOST=$RHOST
@@ -733,15 +731,15 @@ main()
#$PAN_COMMAND #Duplicated code here, because otherwise if we fail, only "PAN_COMMAND" gets output
## Display the Output/Log/Failed/HTML file names here
- echo -e "LOG File: \c"
+ printf "LOG File: "
echo $LOGFILE | cut -b4-
if [ "$OUTPUTFILE" ]; then
- echo -e "OUTPUT File: \c"
+ printf "OUTPUT File: "
echo $OUTPUTFILE | cut -b4-
fi
- echo -e "FAILED COMMAND File: \c"
+ printf "FAILED COMMAND File: "
echo $FAILCMDFILE | cut -b4-
if [ "$HTMLFILE" ]; then
--
1.8.1.2
------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&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] 8+ messages in thread
* Re: [LTP] [PATCHv3] runltp: rework echo -n to printf POSIX-compliant
2013-09-03 7:42 ` [LTP] [PATCHv3] runltp: rework echo -n to printf POSIX-compliant Anders Roxell
@ 2013-09-03 11:38 ` chrubis
0 siblings, 0 replies; 8+ messages in thread
From: chrubis @ 2013-09-03 11:38 UTC (permalink / raw)
To: Anders Roxell; +Cc: ltp-list, patches
Hi!
> Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
> ---
> runltp | 18 ++++++++----------
> 1 file changed, 8 insertions(+), 10 deletions(-)
Pushed, thanks.
--
Cyril Hrubis
chrubis@suse.cz
------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&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] 8+ messages in thread
end of thread, other threads:[~2013-09-03 11:38 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-29 13:55 [LTP] [PATCHv2 0/2] Rework to printf and added required import Anders Roxell
2013-08-29 13:55 ` [LTP] [PATCH 1/2] realtime parser: remove unused and depricated imports Anders Roxell
2013-09-02 16:37 ` chrubis
2013-08-29 13:55 ` [LTP] [PATCH 2/2] runltp: rework echo -n to printf POSIX-compliant Anders Roxell
2013-09-02 16:38 ` chrubis
2013-09-02 14:45 ` [LTP] [PATCHv2 0/2] Rework to printf and added required import Anders Roxell
2013-09-03 7:42 ` [LTP] [PATCHv3] runltp: rework echo -n to printf POSIX-compliant Anders Roxell
2013-09-03 11:38 ` chrubis
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox