Skip to content
This repository has been archived by the owner on Jan 7, 2025. It is now read-only.

Commit

Permalink
running cli in .. (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
wangpatrick57 authored Feb 11, 2024
1 parent 79c4664 commit bad836e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion datafusion-optd-cli/tests/cli_integration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ fn init() {
#[test]
fn cli_test_tpch() {
let mut cmd = Command::cargo_bin("datafusion-optd-cli").unwrap();
cmd.args(["--enable-logical", "--file", "../tpch/test.sql"]);
cmd.current_dir(".."); // all paths in `test.sql` assume we're in the base dir of the repo
cmd.args(["--enable-logical", "--file", "tpch/test.sql"]);
let status = cmd.status().unwrap();
assert!(status.success(), "should not have crashed when running tpch");
}

0 comments on commit bad836e

Please sign in to comment.