summaryrefslogtreecommitdiffstats
path: root/tests/bugs/glusterfs-server
diff options
context:
space:
mode:
authorkshithijiyer <kshithij.ki@gmail.com>2019-11-30 15:25:11 +0530
committerSunny Kumar <sunkumar@redhat.com>2019-12-17 11:33:16 +0000
commitf6e2958543246d547f1c3c3b3b080d435b4c9296 (patch)
tree06fc16e0381483a29841603e1fc50be089cc83a0 /tests/bugs/glusterfs-server
parentff7865be148d5f4f22861fe93710c0b97d24f81f (diff)
[Cli] Removing old log rotate command.
The old command for log rotate is still present removing it completely. Also adding testcase to test the log rotate command with both the old as well as the new command and fixing testcase which use the old syntax to use the new one. Code to be removed: 1. In cli-cmd-volume.c from struct cli_cmd volume_cmds[]: {"volume log rotate <VOLNAME> [BRICK]", cli_cmd_log_rotate_cbk, "rotate the log file for corresponding volume/brick" " NOTE: This is an old syntax, will be deprecated from next release."}, 2. In cli-cmd-volume.c from cli_cmd_log_rotate_cbk(): ||(strcmp("rotate", words[2]) == 0))) 3. In cli-cmd-parser.c from cli_cmd_log_rotate_parse() if (strcmp("rotate", words[2]) == 0) volname = (char *)words[3]; else fixes: bz#1750387 Change-Id: I56e4d295044e8d5fd1fc0d848bc87e135e9e32b4 Signed-off-by: kshithijiyer <kshithij.ki@gmail.com>
Diffstat (limited to 'tests/bugs/glusterfs-server')
-rwxr-xr-xtests/bugs/glusterfs-server/bug-852147.t2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/bugs/glusterfs-server/bug-852147.t b/tests/bugs/glusterfs-server/bug-852147.t
index c644cfa62dc..75db2a26e05 100755
--- a/tests/bugs/glusterfs-server/bug-852147.t
+++ b/tests/bugs/glusterfs-server/bug-852147.t
@@ -66,7 +66,7 @@ ren_file=$log_file".*"
rm -rf $ren_file
#Initiating log rotate
-TEST $CLI volume log rotate $V0
+TEST $CLI volume log $V0 rotate
#Capturing new log file's size
new_file_size=`file-size $log_file`