cd to tmp directory before copying to prevent deleting original utimensat binary
PATCH 1/1 cd to tmp directory before copying to prevent deleting original utimensat binary
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.
testcases/kernel/syscalls/utimensat/utimensat_tests.sh +3 -3
@@ -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
------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list
Quoted 5 lines · Henry Yei
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<[email protected]>
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list