On RedHat, the case will output error message: Error: Can't get file junkfile. Because anonymous FTP user will not upload file into dir "/tmp/ftpdir" which permission is "755".
Signed-off-by: Peng Haitao <[email protected]> --- testcases/kernel/containers/netns/container_ftp.pl | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/testcases/kernel/containers/netns/container_ftp.pl b/testcases/kernel/containers/netns/container_ftp.pl index 3c704c8..5e359b8 100644 --- a/testcases/kernel/containers/netns/container_ftp.pl +++ b/testcases/kernel/containers/netns/container_ftp.pl @@ -33,7 +33,8 @@ my $dir="/tmp/ftpdir"; mkdir $dir; chdir $dir; -system("dd if=/dev/zero of=$putdir$file bs=512 count=10 > /dev/null 2>&1 "); +chmod 0777, $dir; +system("dd if=/dev/zero of=$dir/$file bs=512 count=10 > /dev/null 2>&1 "); while ( $i < $kount ) { @@ -65,5 +66,6 @@ exit 0; sub printerr { print "Error: "; print @ERRORS; + system("rm -rf $dir"); exit -1; } -- 1.7.1 -- Best Regards, Peng Haitao ------------------------------------------------------------------------------ Benefiting from Server Virtualization: Beyond Initial Workload Consolidation -- Increasing the use of server virtualization is a top priority.Virtualization can reduce costs, simplify management, and improve application availability and disaster protection. Learn more about boosting the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
