Skip to content

Commit

Permalink
Update test-spice (#6618)
Browse files Browse the repository at this point in the history
* Linting cleanup
  • Loading branch information
rcalixte authored Nov 24, 2024
1 parent c513007 commit ac6c3b1
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions test-spice
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ def validate_spice(uuid):
' directory of the repository.')
return False


def copy_xlet(uuid):
"""
Copy the UUID directory and action file for testing purposes
Expand All @@ -49,17 +50,18 @@ def copy_xlet(uuid):
# metadata.json file not found or missing valid keys
pass


def reload_xlet(uuid):
"""
Reloads the Spice via dbus-send.
"""
args = ['/usr/bin/cinnamon-dbus-command', 'ReloadXlet', uuid, 'APPLET']
out = subprocess.run(args, check=False,
stdout=subprocess.DEVNULL, stderr=subprocess.PIPE
)
out = subprocess.run(args, check=False,
stdout=subprocess.DEVNULL, stderr=subprocess.PIPE)
if out.returncode != 0:
print(out.stderr.decode('ascii') + '\nReload error!')


def main():
"""
Simpler testing of Spices for developers
Expand Down

0 comments on commit ac6c3b1

Please sign in to comment.