Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modify python test scripts to work from nix #2168

Merged
merged 3 commits into from
May 22, 2024

Conversation

fidgetingbits
Copy link
Contributor

Minor tweaks to the testing scripts to be able to run in the nix dev shell and lazy load the gdbinit.py from utils.py. If someone has preference for how to pass the path to gdbinit.py instead of the environment let me know. Since it's just various tests importing that file directly, I chose that route. Don't have a lot of pytest experience though.

This change allows someone to run ./tests.sh --nix to test with the pwndbg copy built by nix.

Copy link
Member

@disconnect3d disconnect3d left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

tests/gdb-tests/tests.py Outdated Show resolved Hide resolved
tests/gdb-tests/tests/utils.py Outdated Show resolved Hide resolved
@disconnect3d disconnect3d merged commit 5d083d4 into pwndbg:dev May 22, 2024
13 checks passed
@fidgetingbits fidgetingbits deleted the nix-tests branch May 24, 2024 02:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants