mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +03:00
MDEV-9566 prepare mysqltest for mariabackup
- Do not throw output of exec command, if disable_result_log is set save and dump it if exec fails. Need tha to meaningfully analyze errors from mariabackup. - rmdir now removes the entire tree. need that because xtrabackup tests clean the whole directory. - all filesystem modifying commands now require the argument to be under MYSQLTEST_VARDIR or MYSQL_TMP_DIR.
This commit is contained in:
committed by
Sergei Golubchik
parent
7bf409593e
commit
ec68f764f6
@@ -406,7 +406,7 @@ select 3 from t1 ;
|
||||
--disable_abort_on_error ONCE
|
||||
garbage;
|
||||
--disable_abort_on_error ONCE
|
||||
--remove_file DoesNotExist
|
||||
--remove_file $MYSQLTEST_VARDIR/DoesNotExist
|
||||
|
||||
--disable_result_log
|
||||
select 2;
|
||||
@@ -1940,8 +1940,6 @@ remove_file $MYSQLTEST_VARDIR/tmp/zero_length_file.result;
|
||||
remove_file $MYSQLTEST_VARDIR/tmp/zero_length_file.reject;
|
||||
--error 0,1
|
||||
remove_file $MYSQLTEST_VARDIR/tmp/zero_length_file.log;
|
||||
--error 0,1
|
||||
remove_file $MYSQL_TEST_DIR/r/zero_length_file.reject;
|
||||
--enable_warnings
|
||||
|
||||
#
|
||||
@@ -2194,7 +2192,7 @@ drop table t1;
|
||||
--exec echo "remove_file ;" | $MYSQL_TEST 2>&1
|
||||
|
||||
--error 1
|
||||
remove_file non_existing_file;
|
||||
remove_file $MYSQLTEST_VARDIR/non_existing_file;
|
||||
--enable_warnings
|
||||
|
||||
# ----------------------------------------------------------------------------
|
||||
@@ -2205,10 +2203,10 @@ remove_file non_existing_file;
|
||||
--exec echo "remove_files_wildcard ;" | $MYSQL_TEST 2>&1
|
||||
|
||||
--error 1
|
||||
remove_files_wildcard non_existing_dir;
|
||||
remove_files_wildcard $MYSQLTEST_VARDIR/non_existing_dir;
|
||||
|
||||
--error 1
|
||||
remove_files_wildcard non_existing_dir non_existing_file;
|
||||
remove_files_wildcard $MYSQLTEST_VARDIR/non_existing_dir non_existing_file;
|
||||
|
||||
# ----------------------------------------------------------------------------
|
||||
# test for write_file
|
||||
@@ -2217,7 +2215,7 @@ remove_files_wildcard non_existing_dir non_existing_file;
|
||||
--exec echo "write_file ;" | $MYSQL_TEST 2>&1
|
||||
|
||||
--error 1
|
||||
--exec echo "write_file filename ;" | $MYSQL_TEST 2>&1
|
||||
--exec echo "write_file $MYSQLTEST_VARDIR/filename ;" | $MYSQL_TEST 2>&1
|
||||
|
||||
# Comment out this test as it confuses cmd.exe with unmatched "
|
||||
#--error 1
|
||||
@@ -2463,19 +2461,19 @@ remove_file $MYSQLTEST_VARDIR/tmp/file1.tmp;
|
||||
--exec echo "chmod ;" | $MYSQL_TEST 2>&1
|
||||
|
||||
--error 1
|
||||
--exec echo "chmod 0 from_file;" | $MYSQL_TEST 2>&1
|
||||
--exec echo "chmod 0 $MYSQLTEST_VARDIR/from_file;" | $MYSQL_TEST 2>&1
|
||||
|
||||
--error 1
|
||||
--exec echo "chmod 08 from_file;" | $MYSQL_TEST 2>&1
|
||||
--exec echo "chmod 08 $MYSQLTEST_VARDIR/from_file;" | $MYSQL_TEST 2>&1
|
||||
|
||||
--error 1
|
||||
--exec echo "chmod from_file;" | $MYSQL_TEST 2>&1
|
||||
--exec echo "chmod $MYSQLTEST_VARDIR/from_file;" | $MYSQL_TEST 2>&1
|
||||
|
||||
--error 1
|
||||
--exec echo "chmod ABZD from_file;" | $MYSQL_TEST 2>&1
|
||||
--exec echo "chmod ABZD $MYSQLTEST_VARDIR/from_file;" | $MYSQL_TEST 2>&1
|
||||
|
||||
--error 1
|
||||
--exec echo "chmod 06789 from_file;" | $MYSQL_TEST 2>&1
|
||||
--exec echo "chmod 06789 $MYSQLTEST_VARDIR/from_file;" | $MYSQL_TEST 2>&1
|
||||
|
||||
|
||||
# ----------------------------------------------------------------------------
|
||||
@@ -2876,8 +2874,6 @@ list_files_append_file $MYSQLTEST_VARDIR/tmp/testdir/file2.txt $MYSQLTEST_VARDIR
|
||||
list_files_write_file $MYSQLTEST_VARDIR/tmp/testdir/file2.txt $MYSQLTEST_VARDIR/tmp/testdir file?.txt;
|
||||
list_files_append_file $MYSQLTEST_VARDIR/tmp/testdir/file3.txt $MYSQLTEST_VARDIR/tmp/testdir file*.txt;
|
||||
diff_files $MYSQLTEST_VARDIR/tmp/testdir/file2.txt $MYSQLTEST_VARDIR/tmp/testdir/file3.txt;
|
||||
--error 1
|
||||
rmdir $MYSQLTEST_VARDIR/tmp/testdir;
|
||||
|
||||
cat_file $MYSQLTEST_VARDIR/tmp/testdir/file3.txt;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user