Skip to content

Commit fea1d64

Browse files
committed
Added command line argument to delete all sketches from test user in staging,
at seleniumbender.py .
1 parent ceae4f0 commit fea1d64

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

bin/seleniumbender.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ def run(self, operation, test=None, libraries=None):
3838
self.walkthrough()
3939
elif operation == 'staging':
4040
self.staging()
41+
elif operation == 'delete':
42+
self.delete()
4143

4244
def run_command(self, command):
4345
command = ' '.join(command)
@@ -131,6 +133,10 @@ def staging(self):
131133
command = self.create_command('compile_tester', '-F', '--plugin')
132134
self.run_command(command)
133135

136+
def delete(self):
137+
command = self.create_command('delete_sketches')
138+
self.run_command(command)
139+
134140
OPERATIONS = {
135141
'common':'\tTest site common functionality',
136142
'libraries': 'Visit all libraries and their examples',
@@ -139,7 +145,8 @@ def staging(self):
139145
'compile': '\tCompile specific examples',
140146
'noplugin': 'Run tests without app/plugin installed',
141147
'walkthrough': 'Run tests for walkthrough',
142-
'staging': '\tRun tests for staging only'
148+
'staging': '\tRun tests for staging only',
149+
'delete': '\tDelete all sketches from test user'
143150
}
144151

145152
TARGETS = {

0 commit comments

Comments
 (0)