mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Test: Simplify path construction of calc binary
This commit is contained in:
parent
1b8e38fb7e
commit
a5b8936f7a
1 changed files with 2 additions and 2 deletions
|
@ -34,9 +34,9 @@ import unittest
|
||||||
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
|
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
|
||||||
|
|
||||||
from basetest import TestCase
|
from basetest import TestCase
|
||||||
from basetest.utils import CURRENT_DIR, run_cmd_wait, run_cmd_wait_nofail
|
from basetest.utils import BIN_PREFIX, run_cmd_wait, run_cmd_wait_nofail
|
||||||
|
|
||||||
CALC = os.path.abspath(os.path.join(CURRENT_DIR, "..", "..", "src/calc"))
|
CALC = os.path.join(BIN_PREFIX, "calc")
|
||||||
|
|
||||||
|
|
||||||
@unittest.skipIf(not os.path.isfile(CALC),
|
@unittest.skipIf(not os.path.isfile(CALC),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue