Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Minor
-
Resolution: Not a Bug
-
Affects Version/s: Mercury
-
Fix Version/s: None
-
Component/s: Other / Misc.
-
Labels:None
-
Environment:
QA 4
Build#ops-scripts-3.0.0-RC3
Description
The argument "Rerun" is not deleting the report file for report-ad-leads-data.sh script/
1.[amlops@aml-qa4-monman1 performance]$ ./report-ad-leads-data.sh -h aml-qa4-mysql1 -u spike -p tar63t -r qa4amltest -d 2016-04-08
.
.
.Using /tmp/ad_leads_data_reports/ for output directory.
.
..
2.Check the csv content and rows
[amlops@aml-qa4-monman1 performance]$ wc -l /tmp/ad_leads_data_reports/Bing-qa4amltest-ad-leads-data-2016-04-08.csv
9 /tmp/ad_leads_data_reports/Bing-qa4amltest-ad-leads-data-2016-04-08.csv
3.Now run the script with option rerun
./report-ad-leads-data.sh -h aml-qa4-mysql1 -u spike -p tar63t -r qa4amltest -d 2016-04-08 -n
./report-ad-leads-data.sh -h aml-qa4-mysql1 -u spike -p tar63t -r qa4amltest -d 2016-04-08 -n
4.Check the content of the csv
Actual Result:
Ad leads data is appending in the existing csv file.
[amlops@aml-qa4-monman1 performance]$ wc -l /tmp/ad_leads_data_reports/Bing-qa4amltest-ad-leads-data-2016-04-08.csv
17 /tmp/ad_leads_data_reports/Bing-qa4amltest-ad-leads-data-2016-04-08.csv
Please see
Expected Result:
Rerun option should delete the old file, recreate a new adwords level data csv.
P.S. This is observed for the script report-keyword-leads-data.sh also