We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1d960c7 commit b8aac6bCopy full SHA for b8aac6b
tests/testsuite/script.rs
@@ -1408,6 +1408,22 @@ Caused by:
1408
.run();
1409
}
1410
1411
+#[cargo_test]
1412
+fn cmd_install_with_embedded() {
1413
+ let p = cargo_test_support::project()
1414
+ .file("script.rs", ECHO_SCRIPT)
1415
+ .build();
1416
+
1417
+ p.cargo("-Zscript install --path script.rs")
1418
+ .masquerade_as_nightly_cargo(&["script"])
1419
+ .with_status(101)
1420
+ .with_stderr_data(str![[r#"
1421
+[ERROR] `[ROOT]/foo/script.rs` is not a directory. --path must point to a directory containing a Cargo.toml file.
1422
1423
+"#]])
1424
+ .run();
1425
+}
1426
1427
#[cargo_test]
1428
fn cmd_package_with_embedded() {
1429
let p = cargo_test_support::project()
0 commit comments