Skip to content

Commit 0db825b

Browse files
authored
Ignore templateDir in tests (#153)
1 parent 5c313ee commit 0db825b

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

tests/integration/test_bash_generation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ def test_bash_generation(self):
99
)
1010
self.assertEqual(
1111
os.system(
12-
"diff -bur test_bash_generation_output/post/scripts /lcrc/group/e3sm/public_html/zppy_test_resources/expected_bash_files"
12+
"diff -bur -I 'templateDir' test_bash_generation_output/post/scripts /lcrc/group/e3sm/public_html/zppy_test_resources/expected_bash_files"
1313
),
1414
0,
1515
)

tests/integration/test_campaign.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def test_campaign_cryosphere(self):
1212
)
1313
self.assertEqual(
1414
os.system(
15-
"diff -u test_campaign_cryosphere_output/post/scripts /lcrc/group/e3sm/public_html/zppy_test_resources/test_campaign_cryosphere_expected_files"
15+
"diff -u -I 'templateDir' test_campaign_cryosphere_output/post/scripts /lcrc/group/e3sm/public_html/zppy_test_resources/test_campaign_cryosphere_expected_files"
1616
),
1717
0,
1818
)
@@ -33,7 +33,7 @@ def test_campaign_cryosphere_override(self):
3333
)
3434
self.assertEqual(
3535
os.system(
36-
"diff -u test_campaign_cryosphere_override_output/post/scripts /lcrc/group/e3sm/public_html/zppy_test_resources/test_campaign_cryosphere_override_expected_files"
36+
"diff -u -I 'templateDir' test_campaign_cryosphere_override_output/post/scripts /lcrc/group/e3sm/public_html/zppy_test_resources/test_campaign_cryosphere_override_expected_files"
3737
),
3838
0,
3939
)
@@ -48,7 +48,7 @@ def test_campaign_none(self):
4848
)
4949
self.assertEqual(
5050
os.system(
51-
"diff -u test_campaign_none_output/post/scripts /lcrc/group/e3sm/public_html/zppy_test_resources/test_campaign_none_expected_files"
51+
"diff -u -I 'templateDir' test_campaign_none_output/post/scripts /lcrc/group/e3sm/public_html/zppy_test_resources/test_campaign_none_expected_files"
5252
),
5353
0,
5454
)
@@ -63,7 +63,7 @@ def test_campaign_water_cycle(self):
6363
)
6464
self.assertEqual(
6565
os.system(
66-
"diff -u test_campaign_water_cycle_output/post/scripts /lcrc/group/e3sm/public_html/zppy_test_resources/test_campaign_water_cycle_expected_files"
66+
"diff -u -I 'templateDir' test_campaign_water_cycle_output/post/scripts /lcrc/group/e3sm/public_html/zppy_test_resources/test_campaign_water_cycle_expected_files"
6767
),
6868
0,
6969
)
@@ -84,7 +84,7 @@ def test_campaign_water_cycle_override(self):
8484
)
8585
self.assertEqual(
8686
os.system(
87-
"diff -u test_campaign_water_cycle_override_output/post/scripts /lcrc/group/e3sm/public_html/zppy_test_resources/test_campaign_water_cycle_override_expected_files"
87+
"diff -u -I 'templateDir' test_campaign_water_cycle_override_output/post/scripts /lcrc/group/e3sm/public_html/zppy_test_resources/test_campaign_water_cycle_override_expected_files"
8888
),
8989
0,
9090
)

0 commit comments

Comments
 (0)