Skip to content

Tests do not pass #10

Closed
Closed
@ceremcem

Description

@ceremcem

Currently tests throw an exception:

./tests.sh
Create subvolume './btrfs-diff-tests'
Create a readonly snapshot of './btrfs-diff-tests' in './btrfs-diff-tests.parent'
ERROR: Could not open: No such file or directory
~/.sbin/erik-sync/smith-sync/btrfs-snapshots-diff/btrfs-diff-tests ~/.sbin/erik-sync/smith-sync/btrfs-snapshots-diff
~/.sbin/erik-sync/smith-sync/btrfs-snapshots-diff
Create a readonly snapshot of './btrfs-diff-tests' in './btrfs-diff-tests.child'
btrfs-snapshots-diff.py normal output:
======================================
  File "/home/ceremcem/.sbin/erik-sync/smith-sync/btrfs-snapshots-diff/btrfs-snapshots-diff.py", line 97
    raise ValueError(f'Unexpected attribute {self.send_attrs[attr]}')
                                                                   ^
SyntaxError: invalid syntax

btrfs-snapshots-diff.py CSV output:
===================================
  File "/home/ceremcem/.sbin/erik-sync/smith-sync/btrfs-snapshots-diff/btrfs-snapshots-diff.py", line 97
    raise ValueError(f'Unexpected attribute {self.send_attrs[attr]}')
                                                                   ^
SyntaxError: invalid syntax

btrfs-snapshots-diff.py JSON output:
====================================
./tests.sh: line 51: jq: command not found
  File "/home/ceremcem/.sbin/erik-sync/smith-sync/btrfs-snapshots-diff/btrfs-snapshots-diff.py", line 97
    raise ValueError(f'Unexpected attribute {self.send_attrs[attr]}')
                                                                   ^
SyntaxError: invalid syntax

Delete subvolume (commit): '/home/ceremcem/.sbin/erik-sync/smith-sync/btrfs-snapshots-diff/btrfs-diff-tests'
Delete subvolume (commit): '/home/ceremcem/.sbin/erik-sync/smith-sync/btrfs-snapshots-diff/btrfs-diff-tests.parent'
Delete subvolume (commit): '/home/ceremcem/.sbin/erik-sync/smith-sync/btrfs-snapshots-diff/btrfs-diff-tests.child'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions