Skip to content

Commit

Permalink
make RUST_BACKTRACE overwritable by --env
Browse files Browse the repository at this point in the history
  • Loading branch information
bestouff committed Jun 29, 2023
1 parent f22f0bd commit 75180c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dinghy-lib/src/android/device.rs
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ impl Device for AndroidDevice {
.collect();
let (build_bundle, remote_bundle) = self.install_app(&project, &build)?;
let command = format!(
"cd '{}'; {} DINGHY=1 RUST_BACKTRACE=1 LD_LIBRARY_PATH=\"{}:$LD_LIBRARY_PATH\" {} {} ; echo FORWARD_RESULT_TO_DINGHY_BECAUSE_ADB_DOES_NOT=$?",
"cd '{}'; RUST_BACKTRACE=1 {} DINGHY=1 LD_LIBRARY_PATH=\"{}:$LD_LIBRARY_PATH\" {} {} ; echo FORWARD_RESULT_TO_DINGHY_BECAUSE_ADB_DOES_NOT=$?",
path_to_str(&remote_bundle.bundle_dir)?,
envs.join(" "),
path_to_str(&remote_bundle.lib_dir)?,
Expand Down
2 changes: 1 addition & 1 deletion dinghy-lib/src/ssh/device.rs
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ impl Device for SshDevice {
let (build_bundle, remote_bundle) = self.install_app(&project, &build)?;
log::debug!("Installed {:?}", build.runnable.id);
let command = format!(
"cd '{}' ; {} RUST_BACKTRACE=1 DINGHY=1 LD_LIBRARY_PATH=\"{}:$LD_LIBRARY_PATH\" {} {}",
"cd '{}' ; RUST_BACKTRACE=1 {} DINGHY=1 LD_LIBRARY_PATH=\"{}:$LD_LIBRARY_PATH\" {} {}",
path_to_str(&remote_bundle.bundle_dir)?,
envs.join(" "),
path_to_str(&remote_bundle.lib_dir)?,
Expand Down

0 comments on commit 75180c8

Please # to comment.