[test] fix bug about save devtools' settings on Mac

 fix bug about save devtools' settings on Mac