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

Failed -as #43

Open
kweide opened this issue May 19, 2023 · 3 comments
Open

Failed -as #43

kweide opened this issue May 19, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@kweide
Copy link
Member

kweide commented May 19, 2023

With the following in a .suite file:

SNIa_DoubleDetonation -t "Comparison/SNIaDDT/AMR/2d/sparkNt" -np 8 -as "-test" \
        -e OMP_NUM_THREADS=1 -cbase 2023-04-11_5

`flashxtest setup-suite' fails with

usage: flashxtest [-h] [-t TEST] [-np NPROCS] [-cbase CBASE] [-rbase RBASE]
                  [-tol TOLERANCE] [-e ENV [ENV ...]] [-debug]
                  [-as ADD_SETUP_OPTS]
flashxtest: error: argument -as/--add-setup-opts: expected one argument

The intention here was obviously to add the string "-test" to the setup command line for this one test.

@kweide
Copy link
Member Author

kweide commented May 19, 2023

As a workaround, replacing -as "-test" with -as " -test" works.

@akashdhruv
Copy link
Member

That is odd. I will take a look into this.

@akashdhruv
Copy link
Member

akashdhruv commented May 25, 2023

This is happening because -t/--test is an option for the setup-suite command itself. when you supply "-test" instead of " -test" it reads the former as a command. Weird that it does that, trying to see how I can resolve it.

@akashdhruv akashdhruv added the bug Something isn't working label Jul 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants