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

Error running test.py on my machine. #896

Closed
jkoking opened this issue Mar 23, 2024 · 2 comments
Closed

Error running test.py on my machine. #896

jkoking opened this issue Mar 23, 2024 · 2 comments

Comments

@jkoking
Copy link
Contributor

jkoking commented Mar 23, 2024

  • When I run this.
 './tests/run.py '<nixos-hardware/framework/13-inch/7040-amd>'
  • I get
warning: unknown setting 'allowed-users'
warning: unknown setting 'trusted-users'
error: path has a trailing slash

       at /run/user/1000/tmp5oo2fahn/eval-test.nix:17:124:

           16| {
           17|   "<nixos-hardware/framework/13-inch/7040-amd>" = buildProfile { profile = import /home/jacob/Documents/dev/nixos-hardware/<nixos-hardware/framework/13-inch/7040-amd>; pkgs = pkgs.x86_64-linux; };
             |                                                                                                                            ^
           18| }
error: path has a trailing slash

       at /run/user/1000/tmp5oo2fahn/eval-test.nix:17:124:

           16| {
           17|   "<nixos-hardware/framework/13-inch/7040-amd>" = buildProfile { profile = import /home/jacob/Documents/dev/nixos-hardware/<nixos-hardware/framework/13-inch/7040-amd>; pkgs = pkgs.x86_64-linux; };
             |                                                                                                                            ^
           18| }
error: path has a trailing slash

       at /run/user/1000/tmp5oo2fahn/eval-test.nix:17:124:

           16| {
           17|   "<nixos-hardware/framework/13-inch/7040-amd>" = buildProfile { profile = import /home/jacob/Documents/dev/nixos-hardware/<nixos-hardware/framework/13-inch/7040-amd>; pkgs = pkgs.x86_64-linux; };
             |                                                                                                                            ^
           18| }
error: path has a trailing slash

       at /run/user/1000/tmp5oo2fahn/eval-test.nix:17:124:

           16| {
           17|   "<nixos-hardware/framework/13-inch/7040-amd>" = buildProfile { profile = import /home/jacob/Documents/dev/nixos-hardware/<nixos-hardware/framework/13-inch/7040-amd>; pkgs = pkgs.x86_64-linux; };
             |                                                                                                                            ^
           18| }
error: path has a trailing slash

       at /run/user/1000/tmp5oo2fahn/eval-test.nix:17:124:

           16| {
           17|   "<nixos-hardware/framework/13-inch/7040-amd>" = buildProfile { profile = import /home/jacob/Documents/dev/nixos-hardware/<nixos-hardware/framework/13-inch/7040-amd>; pkgs = pkgs.x86_64-linux; };
             |                                                                                                                            ^
           18| }
error: path has a trailing slash

       at /run/user/1000/tmp5oo2fahn/eval-test.nix:17:124:

           16| {
           17|   "<nixos-hardware/framework/13-inch/7040-amd>" = buildProfile { profile = import /home/jacob/Documents/dev/nixos-hardware/<nixos-hardware/framework/13-inch/7040-amd>; pkgs = pkgs.x86_64-linux; };
             |                                                                                                                            ^
           18| }
error: path has a trailing slash

       at /run/user/1000/tmp5oo2fahn/eval-test.nix:17:124:

           16| {
           17|   "<nixos-hardware/framework/13-inch/7040-amd>" = buildProfile { profile = import /home/jacob/Documents/dev/nixos-hardware/<nixos-hardware/framework/13-inch/7040-amd>; pkgs = pkgs.x86_64-linux; };
             |                                                                                                                            ^
           18| }
error: path has a trailing slash

       at /run/user/1000/tmp5oo2fahn/eval-test.nix:17:124:

           16| {
           17|   "<nixos-hardware/framework/13-inch/7040-amd>" = buildProfile { profile = import /home/jacob/Documents/dev/nixos-hardware/<nixos-hardware/framework/13-inch/7040-amd>; pkgs = pkgs.x86_64-linux; };
             |                                                                                                                            ^
           18| }
error: path has a trailing slash

       at /run/user/1000/tmp5oo2fahn/eval-test.nix:17:124:

           16| {
           17|   "<nixos-hardware/framework/13-inch/7040-amd>" = buildProfile { profile = import /home/jacob/Documents/dev/nixos-hardware/<nixos-hardware/framework/13-inch/7040-amd>; pkgs = pkgs.x86_64-linux; };
             |                                                                                                                            ^
           18| }
error: path has a trailing slash

       at /run/user/1000/tmp5oo2fahn/eval-test.nix:17:124:

           16| {
           17|   "<nixos-hardware/framework/13-inch/7040-amd>" = buildProfile { profile = import /home/jacob/Documents/dev/nixos-hardware/<nixos-hardware/framework/13-inch/7040-amd>; pkgs = pkgs.x86_64-linux; };
             |                                                                                                                            ^
           18| }
error: path has a trailing slash

       at /run/user/1000/tmp5oo2fahn/eval-test.nix:17:124:

           16| {
           17|   "<nixos-hardware/framework/13-inch/7040-amd>" = buildProfile { profile = import /home/jacob/Documents/dev/nixos-hardware/<nixos-hardware/framework/13-inch/7040-amd>; pkgs = pkgs.x86_64-linux; };
             |                                                                                                                            ^
           18| }
error: path has a trailing slash

       at /run/user/1000/tmp5oo2fahn/eval-test.nix:17:124:

           16| {
           17|   "<nixos-hardware/framework/13-inch/7040-amd>" = buildProfile { profile = import /home/jacob/Documents/dev/nixos-hardware/<nixos-hardware/framework/13-inch/7040-amd>; pkgs = pkgs.x86_64-linux; };
             |                                                                                                                            ^
           18| }
error: path has a trailing slash

       at /run/user/1000/tmp5oo2fahn/eval-test.nix:17:124:

           16| {
           17|   "<nixos-hardware/framework/13-inch/7040-amd>" = buildProfile { profile = import /home/jacob/Documents/dev/nixos-hardware/<nixos-hardware/framework/13-inch/7040-amd>; pkgs = pkgs.x86_64-linux; };
             |                                                                                                                            ^
           18| }
error: path has a trailing slash

       at /run/user/1000/tmp5oo2fahn/eval-test.nix:17:124:

           16| {
           17|   "<nixos-hardware/framework/13-inch/7040-amd>" = buildProfile { profile = import /home/jacob/Documents/dev/nixos-hardware/<nixos-hardware/framework/13-inch/7040-amd>; pkgs = pkgs.x86_64-linux; };
             |                                                                                                                            ^
           18| }
error: path has a trailing slash

       at /run/user/1000/tmp5oo2fahn/eval-test.nix:17:124:

           16| {
           17|   "<nixos-hardware/framework/13-inch/7040-amd>" = buildProfile { profile = import /home/jacob/Documents/dev/nixos-hardware/<nixos-hardware/framework/13-inch/7040-amd>; pkgs = pkgs.x86_64-linux; };
             |                                                                                                                            ^
           18| }
error: path has a trailing slash

       at /run/user/1000/tmp5oo2fahn/eval-test.nix:17:124:

           16| {
           17|   "<nixos-hardware/framework/13-inch/7040-amd>" = buildProfile { profile = import /home/jacob/Documents/dev/nixos-hardware/<nixos-hardware/framework/13-inch/7040-amd>; pkgs = pkgs.x86_64-linux; };
             |                                                                                                                            ^
           18| }
error: worker error: error: path has a trailing slash

              at /run/user/1000/tmp5oo2fahn/eval-test.nix:17:124:

                  16| {
                  17|   "<nixos-hardware/framework/13-inch/7040-amd>" = buildProfile { profile = import /home/jacob/Documents/dev/nixos-hardware/<nixos-hardware/framework/13-inch/7040-amd>; pkgs = pkgs.x86_64-linux; };
                    |                                                                                                                            ^
                  18| }
 
@8bitbuddhist
Copy link
Contributor

I know this is an old issue, and I can't say this is the "correct" answer, but try this:

./tests/run.py 'framework/13-inch/7040-amd'

The test script seems to treat this as a file path instead of a reference to a module, so when it tries interpreting "<" as part of the path, it throws an error.

@Mic92
Copy link
Member

Mic92 commented May 25, 2024

Yes. You need to remove the <>.

@Mic92 Mic92 closed this as completed May 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants