All of lore.kernel.org
 help / color / mirror / Atom feed
* [LTP] [PATCH][utimensat.sh] cd to tmp directory before copying to prevent deleting original utimensat binary
@ 2010-02-05 23:26 Henry Yei
  2010-02-06  8:34 ` Garrett Cooper
  0 siblings, 1 reply; 2+ messages in thread
From: Henry Yei @ 2010-02-05 23:26 UTC (permalink / raw)
  To: ltp-list


[-- Attachment #1.1: Type: text/plain, Size: 244 bytes --]

This patch makes the test script cd into the tmp directory before running
the tests. This makes sure the script does not delete the original utimensat
binary, causing the test to fail on a second run.

Signed-off-by: Henry Yei<hyei@mvista.com>

[-- Attachment #1.2: Type: text/html, Size: 329 bytes --]

[-- Attachment #2: utimensat_tests.patch --]
[-- Type: text/x-patch, Size: 855 bytes --]

--- ltp/testcases/kernel/syscalls/utimensat/utimensat_tests.sh	2009-09-16 08:02:10.000000000 -0700
+++ ltp-wdir/testcases/kernel/syscalls/utimensat/utimensat_tests.sh	2010-02-05 14:36:50.048507944 -0800
@@ -61,7 +61,7 @@ setup_file()
 
     FILE=$1
 
-    # Make sure any old verion of file is deleted
+    # Make sure any old version of file is deleted
 
     if test -e $FILE; then
         sudo chattr -ai $FILE
@@ -126,7 +126,7 @@ check_result()
     fi
 
     read res atime mtime < $RESULT_FILE
-   
+
     echo "EXPECTED: $EXPECTED_RESULT $EXPECT_ATIME_CHANGED "\
          "$EXPECT_MTIME_CHANGED"
     echo "RESULT:   $res $atime $mtime"
@@ -245,7 +245,7 @@ run_test()
 
 user_tester=nobody
 sudo -u $user_tester mkdir -p $TEST_DIR
-
+cd $TEST_DIR
 chown root $LTPROOT/testcases/bin/$TEST_PROG
 chmod ugo+x,u+s $LTPROOT/testcases/bin/$TEST_PROG
 

[-- Attachment #3: Type: text/plain, Size: 408 bytes --]

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com

[-- Attachment #4: 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] 2+ messages in thread

* Re: [LTP] [PATCH][utimensat.sh] cd to tmp directory before copying to prevent deleting original utimensat binary
  2010-02-05 23:26 [LTP] [PATCH][utimensat.sh] cd to tmp directory before copying to prevent deleting original utimensat binary Henry Yei
@ 2010-02-06  8:34 ` Garrett Cooper
  0 siblings, 0 replies; 2+ messages in thread
From: Garrett Cooper @ 2010-02-06  8:34 UTC (permalink / raw)
  To: Henry Yei; +Cc: ltp-list

On Fri, Feb 5, 2010 at 3:26 PM, Henry Yei <hyei@mvista.com> wrote:
> This patch makes the test script cd into the tmp directory before running
> the tests. This makes sure the script does not delete the original utimensat
> binary, causing the test to fail on a second run.
>
> Signed-off-by: Henry Yei<hyei@mvista.com>

Committed -- thanks!
-Garrett

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-02-06  8:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-02-05 23:26 [LTP] [PATCH][utimensat.sh] cd to tmp directory before copying to prevent deleting original utimensat binary Henry Yei
2010-02-06  8:34 ` Garrett Cooper

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.