Skip to content

Commit

Permalink
Update new tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mosteo committed Sep 26, 2023
1 parent dd29e88 commit 4b93b29
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions testsuite/tests/misc/git-ungit/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import os
import shutil

from drivers import builds
from drivers.alr import alr_with, crate_dirname, init_local_crate, run_alr
from drivers.asserts import assert_file_exists

Expand All @@ -26,9 +27,13 @@
init_local_crate()
alr_with("libfoo")

assert_file_exists(os.path.join("alire", "cache", "dependencies",
foo_dir, ".git"),
wanted=wanted)
if builds.are_shared():
assert_file_exists(os.path.join(builds.vault_path(), foo_dir, ".git"),
wanted=False)
else:
assert_file_exists(os.path.join("alire", "cache", "dependencies",
foo_dir, ".git"),
wanted=wanted)

if not wanted:
# Enable for next round
Expand Down

0 comments on commit 4b93b29

Please sign in to comment.