tests/plugins/loading.py: Check loading of subproject elements via command line
Since this test case is a tricky load pattern, ensure that our changes which
ensures the toplevel project gets loaded first when addressing subproject
elements on the command line does not break this project.
diff --git a/tests/plugins/junction-with-junction/subproject/target.bst b/tests/plugins/junction-with-junction/subproject/target.bst
new file mode 100644
index 0000000..4d7f702
--- /dev/null
+++ b/tests/plugins/junction-with-junction/subproject/target.bst
@@ -0,0 +1 @@
+kind: manual
diff --git a/tests/plugins/loading.py b/tests/plugins/loading.py
index b85dbd2..4764649 100644
--- a/tests/plugins/loading.py
+++ b/tests/plugins/loading.py
@@ -896,3 +896,9 @@
result.assert_success()
loaded = _yaml.load_data(result.output)
assert loaded.get_str("animal") == "pony"
+
+ # Try a subproject element access on the command line, as this project
+ # has the potential to make this break.
+ #
+ result = cli.run(project=project, args=["show", "subproject.bst:target.bst"])
+ result.assert_success()