@@ -94,8 +94,10 @@ def truncate_database(self) -> None:
9494 try :
9595 mysql_bin_dir = self ._get_mysql_dir ()
9696
97- sql_command = "truncate table msg_log.message;" \
98- "truncate table archive.sample;truncate table alarm.pv"
97+ sql_command = (
98+ "truncate table msg_log.message;"
99+ "truncate table archive.sample;truncate table alarm.pv"
100+ )
99101
100102 RunProcess (
101103 MYSQL_FILES_DIR ,
@@ -212,7 +214,7 @@ def temporarily_run_mysql(self, sql_password: str) -> None:
212214 log_command_args = False , # To make sure password doesn't appear in jenkins log.
213215 ).run ()
214216
215- def _setup_database_users_and_tables (self , vhd_install :bool = True ) -> None :
217+ def _setup_database_users_and_tables (self , vhd_install : bool = True ) -> None :
216218 sql_password = self .prompt .prompt (
217219 "Enter the MySQL root password:" ,
218220 UserPrompt .ANY ,
@@ -258,8 +260,7 @@ def _setup_mysql8_service(self) -> None:
258260 # Wait for initialize since admin runner can't wait for completion.
259261 # Maybe we can detect completion another way?
260262 admin_commands .add_command (
261- mysqld , '--install MYSQL80 --datadir="{}"' .format (
262- os .path .join (MYSQL_FILES_DIR , "data" ))
263+ mysqld , '--install MYSQL80 --datadir="{}"' .format (os .path .join (MYSQL_FILES_DIR , "data" ))
263264 )
264265
265266 admin_commands .add_command ("sc" , "start MYSQL80" , expected_return_val = None )
0 commit comments