Skip to content

Commit

Permalink
fix broken test data path
Browse files Browse the repository at this point in the history
  • Loading branch information
rahulk29 committed Jan 2, 2025
1 parent 455142b commit 2321a07
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions libs/gdsconv/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use crate::{
};

const BUILD_DIR: &str = concat!(env!("CARGO_MANIFEST_DIR"), "/build");
const TEST_DATA_DIR: &str = concat!(env!("CARGO_MANIFEST_DIR"), "../../tests/data");
const TEST_DATA_DIR: &str = concat!(env!("CARGO_MANIFEST_DIR"), "/../../tests/data");

#[inline]
fn get_path(test_name: &str, file_name: &str) -> PathBuf {
Expand Down Expand Up @@ -91,7 +91,8 @@ fn test_export_layir_to_gds() {

#[test]
fn test_gds_import() {
let bytes = std::fs::read(test_data("gds/test_sky130_simple.gds")).expect("failed to read GDS");
let path = test_data("gds/test_sky130_simple.gds");
let bytes = std::fs::read(path).expect("failed to read GDS");
let rawlib = GdsLibrary::from_bytes(bytes).expect("failed to parse GDS");
let lib =
import_gds(&rawlib, GdsImportOpts { units: None }).expect("failed to import to LayIR");
Expand Down

0 comments on commit 2321a07

Please sign in to comment.